@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | $result = $this->rows; |
| 158 | 158 | |
| 159 | - usort($result, function ($a, $b) use ($keys, $key2Direction) { |
|
| 159 | + usort($result, function($a, $b) use ($keys, $key2Direction) { |
|
| 160 | 160 | foreach ($keys as $key) { |
| 161 | 161 | if ($cmpVal = $key2Direction[$key] === 'desc' |
| 162 | 162 | ? $b[$key] <=> $a[$key] |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | */ |
| 265 | 265 | public function toArray() |
| 266 | 266 | { |
| 267 | - return array_map(function ($row) { |
|
| 267 | + return array_map(function($row) { |
|
| 268 | 268 | return $row instanceof self ? $row->toArray() : $row; |
| 269 | 269 | }, $this->rows); |
| 270 | 270 | } |
@@ -344,6 +344,6 @@ discard block |
||
| 344 | 344 | return iterator_to_array($rows); |
| 345 | 345 | } |
| 346 | 346 | |
| 347 | - return (array) $rows; |
|
| 347 | + return (array)$rows; |
|
| 348 | 348 | } |
| 349 | 349 | } |