@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | unset($options['with']); |
| 79 | 79 | $result = static::db()->find(static::table(), $conditions, $options); |
| 80 | 80 | $pk = static::pk(); |
| 81 | - $gen = function () use ($result, $pk, $with) { |
|
| 81 | + $gen = function() use ($result, $pk, $with) { |
|
| 82 | 82 | foreach ($result as $row) { |
| 83 | 83 | $model = new static($row); |
| 84 | 84 | if ($with) { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | return iterator_to_array($generator); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - private static function fields(): ?array |
|
| 115 | + private static function fields(): ? array |
|
| 116 | 116 | { |
| 117 | 117 | return isset(static::$fields) ? static::$fields : null; |
| 118 | 118 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | if (empty($fields) === false) { |
| 124 | 124 | $data = array_filter( |
| 125 | 125 | $data, |
| 126 | - function ($key) use ($fields) { |
|
| 126 | + function($key) use ($fields) { |
|
| 127 | 127 | return in_array($key, $fields); |
| 128 | 128 | }, |
| 129 | 129 | ARRAY_FILTER_USE_KEY |