From 732ec83c07e91ef78de649e6469f8415dee355d5 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Mon, 17 May 2021 08:59:17 +0100 Subject: [PATCH] Reformat --- src/Exceptions/TooManyRequestsException.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Exceptions/TooManyRequestsException.php b/src/Exceptions/TooManyRequestsException.php index 6403a1d..7cf7bfd 100644 --- a/src/Exceptions/TooManyRequestsException.php +++ b/src/Exceptions/TooManyRequestsException.php @@ -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( @@ -30,7 +31,6 @@ public function __construct($component, $method, $ip, $secondsUntilAvailable) $this->method, $this->component, $this->secondsUntilAvailable, - $this->minutesUntilAvailable )); } }