Skip to content

Commit

Permalink
Merge branch 'pr/5' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed May 17, 2021
2 parents 5ff0288 + 732ec83 commit c97041c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Exceptions/TooManyRequestsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ class TooManyRequestsException extends Exception

public $method;

public $secondsUntilAvailable;

public $minutesUntilAvailable;

public $secondsUntilAvailable;

public function __construct($component, $method, $ip, $secondsUntilAvailable)
{
$this->component = $component;
$this->ip = $ip;
$this->method = $method;
$this->secondsUntilAvailable = $secondsUntilAvailable;

$this->minutesUntilAvailable = ceil($this->secondsUntilAvailable / 60);

parent::__construct(sprintf(
Expand All @@ -30,7 +31,6 @@ public function __construct($component, $method, $ip, $secondsUntilAvailable)
$this->method,
$this->component,
$this->secondsUntilAvailable,
$this->minutesUntilAvailable
));
}
}

0 comments on commit c97041c

Please sign in to comment.