Passed
Push — master ( 398b0f...263f6a )
by Kuts
14:11
created
src/HttpClient/HttpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
      */
26 26
     public function request(
27 27
         string $endpoint,
28
-        array $params = [],
28
+        array $params = [ ],
29 29
         $body = null,
30 30
         string $method = 'GET',
31
-        array $headers = []
31
+        array $headers = [ ]
32 32
     ): ResponseInterface;
33 33
 }
Please login to merge, or discard this patch.
src/HttpClient/GuzzleHttpClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
      */
41 41
     public function request(
42 42
         $endpoint,
43
-        $params = [],
44
-        $body = [],
43
+        $params = [ ],
44
+        $body = [ ],
45 45
         $method = 'GET',
46
-        array $headers = []
46
+        array $headers = [ ]
47 47
     ): ResponseInterface {
48 48
         $options = [
49 49
             'headers' => $headers,
Please login to merge, or discard this patch.
src/Objects/StreamContents.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
     public function items(): array
54 54
     {
55 55
 
56
-        $items = [];
56
+        $items = [ ];
57 57
         foreach ($this->data->items as $item) {
58
-            $items[] = new Item($item);
58
+            $items[ ] = new Item($item);
59 59
         }
60 60
 
61 61
         return $items;
Please login to merge, or discard this patch.
src/Objects/Subscriptions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
     public function subscriptions(): array
15 15
     {
16 16
 
17
-        $items = [];
17
+        $items = [ ];
18 18
         foreach ($this->data->subscriptions as $subscription) {
19
-            $items[] = new Subscription($subscription);
19
+            $items[ ] = new Subscription($subscription);
20 20
         }
21 21
 
22 22
         return $items;
Please login to merge, or discard this patch.
src/Objects/UnreadCount.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
      */
18 18
     public function unreadCounts(): array
19 19
     {
20
-        $counts = [];
20
+        $counts = [ ];
21 21
         foreach ($this->data->unreadcounts as $count) {
22
-            $counts[] = new SingleUnreadCount($count);
22
+            $counts[ ] = new SingleUnreadCount($count);
23 23
         }
24 24
         return $counts;
25 25
     }
Please login to merge, or discard this patch.
src/Objects/Subscription.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
      */
28 28
     public function categories(): array
29 29
     {
30
-        $items = [];
30
+        $items = [ ];
31 31
         foreach ($this->data->categories as $category) {
32
-            $items[] = new Category($category);
32
+            $items[ ] = new Category($category);
33 33
         }
34 34
 
35 35
         return $items;
Please login to merge, or discard this patch.
src/Inoreader.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function accessTokenFromCode(string $code, string $redirect_uri): Token
126 126
     {
127
-        $params   = [
127
+        $params = [
128 128
             'code' => $code,
129 129
             'redirect_uri' => $redirect_uri,
130 130
             'client_id' => $this->apiKey,
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             'scope' => '',
133 133
             'grant_type' => 'authorization_code',
134 134
         ];
135
-        $response = $this->getClient()->post(self::API_OAUTH . 'token', [], $params);
135
+        $response = $this->getClient()->post(self::API_OAUTH . 'token', [ ], $params);
136 136
 
137 137
         return new Token($response);
138 138
     }
@@ -148,13 +148,13 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function accessTokenFromRefresh(string $refreshToken): Token
150 150
     {
151
-        $params   = [
151
+        $params = [
152 152
             'client_id' => $this->apiKey,
153 153
             'client_secret' => $this->apiSecret,
154 154
             'refresh_token' => $refreshToken,
155 155
             'grant_type' => 'refresh_token',
156 156
         ];
157
-        $response = $this->getClient()->post(self::API_OAUTH . 'token', [], $params);
157
+        $response = $this->getClient()->post(self::API_OAUTH . 'token', [ ], $params);
158 158
 
159 159
         return new Token($response);
160 160
     }
@@ -255,10 +255,10 @@  discard block
 block discarded – undo
255 255
      */
256 256
     public function tagsList($types = 1, $counts = 1): array
257 257
     {
258
-        $response = $this->getClient()->get('tag/list', ['types' => $types, 'counts' => $counts]);
259
-        $result   = [];
258
+        $response = $this->getClient()->get('tag/list', [ 'types' => $types, 'counts' => $counts ]);
259
+        $result   = [ ];
260 260
         foreach ($response->tags as $tag) {
261
-            $result[] = new Tag($tag);
261
+            $result[ ] = new Tag($tag);
262 262
         }
263 263
 
264 264
         return $result;
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      * @throws InoreaderException
275 275
      * @see http://www.inoreader.com/developers/stream-contents
276 276
      */
277
-    public function streamContents(string $streamId, array $params = []): StreamContents
277
+    public function streamContents(string $streamId, array $params = [ ]): StreamContents
278 278
     {
279 279
         $response = $this->getClient()->get(sprintf('stream/contents/%s', $streamId), $params);
280 280
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      * @throws InoreaderException
292 292
      * @see http://www.inoreader.com/developers/stream-contents
293 293
      */
294
-    public function itemsIds(array $params = []): ItemIds
294
+    public function itemsIds(array $params = [ ]): ItemIds
295 295
     {
296 296
         $response = $this->getClient()->get('stream/items/ids', $params);
297 297
 
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
      */
445 445
     public function createActiveSearch(array $params): ActiveSearch
446 446
     {
447
-        $response = $this->getClient()->post('active_search/create', [], $params);
447
+        $response = $this->getClient()->post('active_search/create', [ ], $params);
448 448
 
449 449
         return new ActiveSearch($response);
450 450
     }
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @return \stdClass
97 97
      * @throws InoreaderException
98 98
      */
99
-    public function get(string $endpoint, $params = [])
99
+    public function get(string $endpoint, $params = [ ])
100 100
     {
101 101
         return $this->send('GET', $endpoint, $params);
102 102
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @return \stdClass
113 113
      */
114
-    public function post(string $endpoint, $params = [], $body = null)
114
+    public function post(string $endpoint, $params = [ ], $body = null)
115 115
     {
116 116
         return $this->send('POST', $endpoint, $params, $body);
117 117
     }
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
      *
127 127
      * @return bool|\stdClass
128 128
      */
129
-    private function send(string $method, string $uri, array $params, $body = null, array $headers = [])
129
+    private function send(string $method, string $uri, array $params, $body = null, array $headers = [ ])
130 130
     {
131
-        $url = mb_substr($uri, 0, 4) === 'http' ?  $uri : \sprintf('%s%s', self::BASE_URL, $uri);
131
+        $url = mb_substr($uri, 0, 4) === 'http' ? $uri : \sprintf('%s%s', self::BASE_URL, $uri);
132 132
 
133 133
         $headers = \array_merge($this->defaultHeaders, $headers);
134 134
 
Please login to merge, or discard this patch.
src/Objects/StreamPreferenceList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
     public function items(): array
54 54
     {
55 55
 
56
-        $items = [];
56
+        $items = [ ];
57 57
         foreach ($this->data->items as $item) {
58
-            $items[] = new Item($item);
58
+            $items[ ] = new Item($item);
59 59
         }
60 60
 
61 61
         return $items;
Please login to merge, or discard this patch.