Completed
Push — master ( 640e49...36fd1f )
by Jan Willem
08:23 queued 02:53
created
src/Client.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $response = $this->authenticate($hostname, $client_id, $client_secret, $username, $password, $handler);
67 67
 
68
-        if (! isset($response['access_token']) || ! isset($response['subdomain'])) {
68
+        if (!isset($response['access_token']) || !isset($response['subdomain'])) {
69 69
             throw new Exception("Incorrect response from Authentication: 'access_token' or 'subdomain' is missing.");
70 70
         }
71 71
 
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
      */
441 441
     public function getItemAccessControls(string $itemId, string $userId = ''):array
442 442
     {
443
-        if (! empty($userId)) {
443
+        if (!empty($userId)) {
444 444
             return $this->get("AccessControls(principalid={$userId},itemid={$itemId})");
445 445
         } else {
446 446
             return $this->get("Items({$itemId})/AccessControls");
@@ -563,8 +563,8 @@  discard block
 block discarded – undo
563 563
     {
564 564
         return http_build_query(
565 565
             array_map(
566
-                function ($parameter) {
567
-                    if (! is_bool($parameter)) {
566
+                function($parameter) {
567
+                    if (!is_bool($parameter)) {
568 568
                         return $parameter;
569 569
                     }
570 570
 
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
      */
585 585
     protected function jsonValidator($data = null):bool
586 586
     {
587
-        if (! empty($data)) {
587
+        if (!empty($data)) {
588 588
             @json_decode($data);
589 589
 
590 590
             return json_last_error() === JSON_ERROR_NONE;
Please login to merge, or discard this patch.