@@ -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 @@ |
||
| 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; |
@@ -49,10 +49,10 @@ discard block |
||
| 49 | 49 | public function items(): array |
| 50 | 50 | { |
| 51 | 51 | |
| 52 | - $items = []; |
|
| 52 | + $items = [ ]; |
|
| 53 | 53 | |
| 54 | 54 | foreach ($this->data->items as $item) { |
| 55 | - $items[] = new Item($item); |
|
| 55 | + $items[ ] = new Item($item); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | return $items; |
@@ -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; |
| 4 | 4 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * @throws InoreaderException |
| 36 | 36 | * @return \stdClass |
| 37 | 37 | */ |
| 38 | - public function post(string $endpoint, $params = []): \stdClass |
|
| 38 | + public function post(string $endpoint, $params = [ ]): \stdClass |
|
| 39 | 39 | { |
| 40 | 40 | $response = $this->getHttpClient()->post($endpoint, $params); |
| 41 | 41 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * @throws InoreaderException |
| 76 | 76 | * @return \stdClass |
| 77 | 77 | */ |
| 78 | - public function get(string $endpoint, $params = []): \stdClass |
|
| 78 | + public function get(string $endpoint, $params = [ ]): \stdClass |
|
| 79 | 79 | { |
| 80 | 80 | $response = $this->getHttpClient()->get($endpoint, $params, [ |
| 81 | 81 | 'Authorization' => 'Bearer c3b56f87fa66a8f0fb976cfe385d78b9d9e75bd0', |
@@ -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; |
@@ -218,12 +218,12 @@ discard block |
||
| 218 | 218 | public function tagsList($types = 1, $counts = 1): array |
| 219 | 219 | { |
| 220 | 220 | |
| 221 | - $response = $this->getClient()->get('tag/list', ['types' => $types, 'counts' => $counts]); |
|
| 221 | + $response = $this->getClient()->get('tag/list', [ 'types' => $types, 'counts' => $counts ]); |
|
| 222 | 222 | |
| 223 | - $result = []; |
|
| 223 | + $result = [ ]; |
|
| 224 | 224 | |
| 225 | 225 | foreach ($response->tags as $tag) { |
| 226 | - $result[] = new Tag($tag); |
|
| 226 | + $result[ ] = new Tag($tag); |
|
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | return $result; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | * @throws InoreaderException |
| 240 | 240 | * @return StreamContents |
| 241 | 241 | */ |
| 242 | - public function streamContents(array $params = []): StreamContents |
|
| 242 | + public function streamContents(array $params = [ ]): StreamContents |
|
| 243 | 243 | { |
| 244 | 244 | |
| 245 | 245 | $response = $this->getClient()->get('stream/contents', $params); |