Test Failed
Pull Request — master (#13)
by
unknown
10:25
created
src/Client.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
 
408 408
         // First Chunk
409 409
         $data = $this->readChunk($stream, $chunkSize);
410
-        while (! ((strlen($data) < $chunkSize) || feof($stream))) {
410
+        while (!((strlen($data) < $chunkSize) || feof($stream))) {
411 411
             $parameters = $this->buildHttpQuery(
412 412
                 [
413 413
                     'index'      => $index,
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
      */
504 504
     public function getItemAccessControls(string $itemId, string $userId = ''):array
505 505
     {
506
-        if (! empty($userId)) {
506
+        if (!empty($userId)) {
507 507
             return $this->get("AccessControls(principalid={$userId},itemid={$itemId})");
508 508
         } else {
509 509
             return $this->get("Items({$itemId})/AccessControls");
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
             if ($this->tokenRepository !== null) {
519 519
                 try {
520 520
                 $this->accessToken = $this->tokenRepository->loadToken($tokenId);
521
-                } catch(TokenNotFoundException $e) {}
521
+                } catch (TokenNotFoundException $e) {}
522 522
             }
523 523
 
524 524
             if ($this->accessToken === null) {
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
     protected function readChunk($stream, int $chunkSize)
679 679
     {
680 680
         $chunk = '';
681
-        while (! feof($stream) && $chunkSize > 0) {
681
+        while (!feof($stream) && $chunkSize > 0) {
682 682
             $part = fread($stream, $chunkSize);
683 683
             if ($part === false) {
684 684
                 throw new Exception('Error reading from $stream.');
@@ -717,8 +717,8 @@  discard block
 block discarded – undo
717 717
     {
718 718
         return http_build_query(
719 719
             array_map(
720
-                function ($parameter) {
721
-                    if (! is_bool($parameter)) {
720
+                function($parameter) {
721
+                    if (!is_bool($parameter)) {
722 722
                         return $parameter;
723 723
                     }
724 724
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
      */
739 739
     protected function jsonValidator($data = null):bool
740 740
     {
741
-        if (! empty($data)) {
741
+        if (!empty($data)) {
742 742
             @json_decode($data);
743 743
 
744 744
             return json_last_error() === JSON_ERROR_NONE;
Please login to merge, or discard this patch.