Test Failed
Pull Request — master (#13)
by
unknown
14:35
created
src/Client.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
         // First Chunk
378 378
         $data = $this->readChunk($stream, $chunkSize);
379
-        while (! ((strlen($data) < $chunkSize) || feof($stream))) {
379
+        while (!((strlen($data) < $chunkSize) || feof($stream))) {
380 380
             $parameters = $this->buildHttpQuery(
381 381
                 [
382 382
                     'index'      => $index,
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
      */
473 473
     public function getItemAccessControls(string $itemId, string $userId = ''):array
474 474
     {
475
-        if (! empty($userId)) {
475
+        if (!empty($userId)) {
476 476
             return $this->get("AccessControls(principalid={$userId},itemid={$itemId})");
477 477
         } else {
478 478
             return $this->get("Items({$itemId})/AccessControls");
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
     protected function readChunk($stream, int $chunkSize)
619 619
     {
620 620
         $chunk = '';
621
-        while (! feof($stream) && $chunkSize > 0) {
621
+        while (!feof($stream) && $chunkSize > 0) {
622 622
             $part = fread($stream, $chunkSize);
623 623
             if ($part === false) {
624 624
                 throw new Exception('Error reading from $stream.');
@@ -657,8 +657,8 @@  discard block
 block discarded – undo
657 657
     {
658 658
         return http_build_query(
659 659
             array_map(
660
-                function ($parameter) {
661
-                    if (! is_bool($parameter)) {
660
+                function($parameter) {
661
+                    if (!is_bool($parameter)) {
662 662
                         return $parameter;
663 663
                     }
664 664
 
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
      */
679 679
     protected function jsonValidator($data = null):bool
680 680
     {
681
-        if (! empty($data)) {
681
+        if (!empty($data)) {
682 682
             @json_decode($data);
683 683
 
684 684
             return json_last_error() === JSON_ERROR_NONE;
Please login to merge, or discard this patch.