@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * @param CollectionItemInterface[] $items |
19 | 19 | */ |
20 | - public function __construct(array $items = []) |
|
20 | + public function __construct(array $items = [ ]) |
|
21 | 21 | { |
22 | 22 | parent::__construct($items); |
23 | 23 | } |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function toJson($inner = false) |
78 | 78 | { |
79 | - $output = []; |
|
79 | + $output = [ ]; |
|
80 | 80 | foreach ($this as $item) { |
81 | - $output[] = $item->toJson(true); |
|
81 | + $output[ ] = $item->toJson(true); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | return $inner === false ? json_encode($output) : $output; |