@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace ExileeD\Inoreader\Exception; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace ExileeD\Inoreader\Client; |
4 | 4 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | ]); |
32 | 32 | } |
33 | 33 | |
34 | - public function get($endpoint, $params = [], $headers = []) |
|
34 | + public function get($endpoint, $params = [ ], $headers = [ ]) |
|
35 | 35 | { |
36 | 36 | $query = [ |
37 | 37 | 'query' => $params, |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * @inheritdoc |
45 | 45 | */ |
46 | - public function request($endpoint, $params = [], $method = 'GET', array $headers = []): ResponseInterface |
|
46 | + public function request($endpoint, $params = [ ], $method = 'GET', array $headers = [ ]): ResponseInterface |
|
47 | 47 | { |
48 | 48 | |
49 | 49 | $options = array_merge($params, [ |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | // TODO: Implement getResponseFormat() method. |
89 | 89 | } |
90 | 90 | |
91 | - public function post($endpoint, $params = [], $headers = []) |
|
91 | + public function post($endpoint, $params = [ ], $headers = [ ]) |
|
92 | 92 | { |
93 | 93 | |
94 | 94 | $body = [ |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace ExileeD\Inoreader\Client; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @throws InoreaderException |
23 | 23 | * @return ResponseInterface |
24 | 24 | */ |
25 | - public function get($endpoint, $params = [], $headers = []); |
|
25 | + public function get($endpoint, $params = [ ], $headers = [ ]); |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Make an HTTP POST request to API |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @throws InoreaderException |
37 | 37 | * @return ResponseInterface |
38 | 38 | */ |
39 | - public function post($endpoint, $params = [], $headers = []); |
|
39 | + public function post($endpoint, $params = [ ], $headers = [ ]); |
|
40 | 40 | |
41 | 41 | |
42 | 42 | /** |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @throws InoreaderException |
53 | 53 | * @return ResponseInterface |
54 | 54 | */ |
55 | - public function request($endpoint, $params = [], $method = 'GET', array $headers = []); |
|
55 | + public function request($endpoint, $params = [ ], $method = 'GET', array $headers = [ ]); |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Get response format for next request |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace ExileeD\Inoreader\Objects; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace ExileeD\Inoreader\Objects; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | /** |
11 | 11 | * @var array |
12 | 12 | */ |
13 | - protected $data = []; |
|
13 | + protected $data = [ ]; |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Constructor. |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace ExileeD\Inoreader\Objects; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace ExileeD\Inoreader\Objects; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace ExileeD\Inoreader\Objects; |
@@ -14,10 +14,10 @@ discard block |
||
14 | 14 | public function subscriptions(): array |
15 | 15 | { |
16 | 16 | |
17 | - $items = []; |
|
17 | + $items = [ ]; |
|
18 | 18 | |
19 | 19 | foreach ($this->data->subscriptions as $subscription) { |
20 | - $items[] = new Subscription($subscription); |
|
20 | + $items[ ] = new Subscription($subscription); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | return $items; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace ExileeD\Inoreader\Objects; |