Test Failed
Push — master ( 2889f4...412d23 )
by Kirill
04:40
created
src/Support/JsonStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      */
89 89
     private function shouldStarts(string $data): bool
90 90
     {
91
-        return $this->buffer === '' && \in_array($data[0], self::JSON_STARTS_WITH, true);;
91
+        return $this->buffer === '' && \in_array($data[0], self::JSON_STARTS_WITH, true); ;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function __get(string $resource)
184 184
     {
185
-        $resolve = function (string $resource) {
185
+        $resolve = function(string $resource) {
186 186
             switch ($resource) {
187 187
                 // == RESOURCES ==
188 188
                 case 'users':
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             return null;
207 207
         };
208 208
 
209
-        if (! isset($this->storage[$resource])) {
209
+        if (!isset($this->storage[$resource])) {
210 210
             $this->storage[$resource] = $resolve($resource);
211 211
         }
212 212
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
             case 'groups':
323 323
             case 'messages':
324 324
             case 'rooms':
325
-                throw new \LogicException('Resource ' . $name . ' can not be removed');
325
+                throw new \LogicException('Resource '.$name.' can not be removed');
326 326
         }
327 327
     }
328 328
 
Please login to merge, or discard this patch.
src/Resources/Rooms.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@
 block discarded – undo
286 286
 
287 287
             yield from $response = $this->fetch($route);
288 288
 
289
-        } while(\count($response) >= $limit && ($skip += $limit));
289
+        } while (\count($response) >= $limit && ($skip += $limit));
290 290
     }
291 291
 
292 292
     /**
Please login to merge, or discard this patch.
src/Resources/AbstractResource.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
      */
56 56
     protected function fetch(Route $route): array
57 57
     {
58
-        $rescue = (new Evacuator(function () use ($route) {
59
-            return (array)$this->viaHttp()->request($route);
58
+        $rescue = (new Evacuator(function() use ($route) {
59
+            return (array) $this->viaHttp()->request($route);
60 60
         }))
61 61
             // If response has status code 4xx
62
-            ->onError(function (ClientException $e) {
63
-                $this->client->logger->error(\get_class($e) . '  ' . $e->getMessage());
62
+            ->onError(function(ClientException $e) {
63
+                $this->client->logger->error(\get_class($e).'  '.$e->getMessage());
64 64
 
65 65
                 switch ($e->getResponse()->getStatusCode()) {
66 66
                     case 429: // 429 Too Many Requests
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 throw $e;
72 72
             })
73 73
             // Other
74
-            ->onError(function (\Exception $e) {
74
+            ->onError(function(\Exception $e) {
75 75
                 $this->client->logger->error($e->getMessage());
76 76
                 throw $e;
77 77
             })
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         return (new Evacuator(function() use ($route) {
93 93
             return $this->viaStream()->request($route);
94 94
         }))
95
-            ->onError(function (\Exception $e) {
95
+            ->onError(function(\Exception $e) {
96 96
                 $this->client->logger->error($e->getMessage());
97 97
             })
98 98
             ->retries($this->client->getRetriesCount())
Please login to merge, or discard this patch.