@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $data = $data['data']; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - foreach($data as $field => $value) { |
|
| 56 | + foreach ($data as $field => $value) { |
|
| 57 | 57 | if (isset($value['rows']) || (isset($value['data']) && ArrayUtils::isNumericKeys($value['data']))) { |
| 58 | 58 | $this->data[$field] = new EntryCollection($value); |
| 59 | 59 | } else if (is_array($value)) { |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | public function toArray() |
| 133 | 133 | { |
| 134 | - return $this-getRawData(); |
|
| 134 | + return $this - getRawData(); |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function jsonSerialize() |
| 143 | 143 | { |
| 144 | - return (object) [ |
|
| 144 | + return (object)[ |
|
| 145 | 145 | 'metadata' => $this->getMetaData(), |
| 146 | 146 | 'data' => $this->getData() |
| 147 | 147 | ]; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $rows = $this->pickRows($data); |
| 48 | 48 | $items = []; |
| 49 | - foreach($rows as $row) { |
|
| 49 | + foreach ($rows as $row) { |
|
| 50 | 50 | $items[] = new Entry($row); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | */ |
| 167 | 167 | public function toArray() |
| 168 | 168 | { |
| 169 | - return $this-getRawData(); |
|
| 169 | + return $this - getRawData(); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function jsonSerialize() |
| 178 | 178 | { |
| 179 | - return (object) [ |
|
| 179 | + return (object)[ |
|
| 180 | 180 | 'meta' => $this->metadata, |
| 181 | 181 | 'data' => $this->items |
| 182 | 182 | ]; |