@@ -33,12 +33,12 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @var Collection|array |
| 35 | 35 | */ |
| 36 | - public $data = []; |
|
| 36 | + public $data = [ ]; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @var Meta|array |
| 40 | 40 | */ |
| 41 | - public $meta = []; |
|
| 41 | + public $meta = [ ]; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param BaseApi $api |
@@ -63,11 +63,11 @@ discard block |
||
| 63 | 63 | $responseData = $this->response->json($resourceName); |
| 64 | 64 | $meta = $this->response->json('meta'); |
| 65 | 65 | |
| 66 | - if (in_array($resourceName, ['settings', 'site'])) { |
|
| 66 | + if (in_array($resourceName, [ 'settings', 'site' ])) { |
|
| 67 | 67 | $data = new $this->resource($responseData); |
| 68 | 68 | } else { |
| 69 | 69 | $data = collect(); |
| 70 | - $responseData = !empty($responseData) ? $responseData : []; |
|
| 70 | + $responseData = !empty($responseData) ? $responseData : [ ]; |
|
| 71 | 71 | foreach ($responseData as $resourceItemData) { |
| 72 | 72 | $data->push(new $this->resource($resourceItemData)); |
| 73 | 73 | } |