Passed
Push — master ( d45005...19a099 )
by Toby
02:48
created
src/Request/BaseRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -397,13 +397,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Request/UserGroupMembershipRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Auth/v0Authenticator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,12 +225,12 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exception/Response/IncorrectResponseTypeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exception/Response/BaseResponseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exception/Response/ResponseMustInheritIResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exception/Response/AuthRefreshRequiredException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exception/Authentication/AuthenticationParameterMissing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exception/Authentication/AuthenticatorNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.