@@ -397,13 +397,13 @@ |
||
| 397 | 397 | * @param string $method |
| 398 | 398 | * @param array|null $body If you don't include it in a data array, we will |
| 399 | 399 | */ |
| 400 | - protected function setAPIParameters($endpoint,$method,$body=null) |
|
| 400 | + protected function setAPIParameters($endpoint, $method, $body = null) |
|
| 401 | 401 | {
|
| 402 | 402 | $this->setEndpoint($endpoint); |
| 403 | 403 | $this->setMethod($method); |
| 404 | - if($body !== null) |
|
| 404 | + if ($body !== null) |
|
| 405 | 405 | {
|
| 406 | - $this->setBody((array_key_exists('data', $body)?$body:array('data'=>$body)));
|
|
| 406 | + $this->setBody((array_key_exists('data', $body) ? $body : array('data'=>$body)));
|
|
| 407 | 407 | } |
| 408 | 408 | } |
| 409 | 409 | |
@@ -78,8 +78,8 @@ |
||
| 78 | 78 | 'GET' |
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | - if($updatedAfter !== null) { $this->addQueryParameter('updated_at_after', $updatedAfter->format('d-m-y H:i:s')); }
|
|
| 82 | - if($updatedBefore !== null) { $this->addQueryParameter('updated_at_before', $updatedBefore->format('d-m-y H:i:s')); }
|
|
| 81 | + if ($updatedAfter !== null) { $this->addQueryParameter('updated_at_after', $updatedAfter->format('d-m-y H:i:s')); }
|
|
| 82 | + if ($updatedBefore !== null) { $this->addQueryParameter('updated_at_before', $updatedBefore->format('d-m-y H:i:s')); }
|
|
| 83 | 83 | |
| 84 | 84 | $this->enableMode(); |
| 85 | 85 | $this->enablePagination(); |
@@ -225,12 +225,12 @@ |
||
| 225 | 225 | */ |
| 226 | 226 | public function needsRefresh() |
| 227 | 227 | {
|
| 228 | - if($this->expires === null) |
|
| 228 | + if ($this->expires === null) |
|
| 229 | 229 | {
|
| 230 | 230 | return true; |
| 231 | 231 | } elseif ($this->expires instanceof Carbon) |
| 232 | 232 | {
|
| 233 | - return ! $this->expires->isFuture(); |
|
| 233 | + return !$this->expires->isFuture(); |
|
| 234 | 234 | } |
| 235 | 235 | return true; |
| 236 | 236 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @param int $unionCloudCode |
| 25 | 25 | * @param string $unionCloudMessage |
| 26 | 26 | */ |
| 27 | - public function __construct($message='The response from Guzzle was of an incorrect type.', $code=500, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage='') |
|
| 27 | + public function __construct($message = 'The response from Guzzle was of an incorrect type.', $code = 500, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage = '') |
|
| 28 | 28 | {
|
| 29 | 29 | parent::__construct($message, $code, $previous, $unionCloudCode, $unionCloudMessage); |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @param int $unionCloudCode |
| 25 | 25 | * @param string $unionCloudMessage |
| 26 | 26 | */ |
| 27 | - public function __construct($message='A problem occured processing the response', $code=500, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage='') |
|
| 27 | + public function __construct($message = 'A problem occured processing the response', $code = 500, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage = '') |
|
| 28 | 28 | {
|
| 29 | 29 | parent::__construct($message, $code, $previous, $unionCloudCode, $unionCloudMessage); |
| 30 | 30 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * @param int $unionCloudCode |
| 24 | 24 | * @param string $unionCloudMessage |
| 25 | 25 | */ |
| 26 | - public function __construct($message='Your response handler must inherit IResponse', $code=500, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage='') |
|
| 26 | + public function __construct($message = 'Your response handler must inherit IResponse', $code = 500, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage = '') |
|
| 27 | 27 | {
|
| 28 | 28 | parent::__construct($message, $code, $previous, $unionCloudCode, $unionCloudMessage); |
| 29 | 29 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @param int $unionCloudCode |
| 25 | 25 | * @param string $unionCloudMessage |
| 26 | 26 | */ |
| 27 | - public function __construct($message='Your authentication needs a refresh', $code=401, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage='') |
|
| 27 | + public function __construct($message = 'Your authentication needs a refresh', $code = 401, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage = '') |
|
| 28 | 28 | {
|
| 29 | 29 | parent::__construct($message, $code, $previous, $unionCloudCode, $unionCloudMessage); |
| 30 | 30 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * @param int $unionCloudCode |
| 23 | 23 | * @param string $unionCloudMessage |
| 24 | 24 | */ |
| 25 | - public function __construct($message='Missing an authentication detail', $code=401, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage='') |
|
| 25 | + public function __construct($message = 'Missing an authentication detail', $code = 401, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage = '') |
|
| 26 | 26 | {
|
| 27 | 27 | parent::__construct($message, $code, $previous, $unionCloudCode, $unionCloudMessage); |
| 28 | 28 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @param int $unionCloudCode |
| 25 | 25 | * @param string $unionCloudMessage |
| 26 | 26 | */ |
| 27 | - public function __construct($message='No authenticator supplied', $code=401, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage='') |
|
| 27 | + public function __construct($message = 'No authenticator supplied', $code = 401, Throwable $previous = null, $unionCloudCode = 0, $unionCloudMessage = '') |
|
| 28 | 28 | {
|
| 29 | 29 | parent::__construct($message, $code, $previous, $unionCloudCode, $unionCloudMessage); |
| 30 | 30 | } |