Passed
Push — master ( 0cf092...c3363c )
by Alexander
02:29
created
src/traits/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
     public static function find(array $conditions = [], array $options = []): Generator
89 89
     {
90 90
         $conditions = self::filterByFields($conditions);
91
-        $with = array_key_exists('with', $options) ? (array)$options['with'] : false;
91
+        $with = array_key_exists('with', $options) ? (array) $options['with'] : false;
92 92
         unset($options['with']);
93 93
         $result = static::db()->find(static::table(), $conditions, $options);
94 94
         $pk = static::pk();
95
-        $gen = function () use ($result, $pk, $with) {
95
+        $gen = function() use ($result, $pk, $with) {
96 96
             foreach ($result as $row) {
97 97
                 $model = new static($row);
98 98
                 if ($with) {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         if (empty($fields) === false) {
152 152
             $data = array_filter(
153 153
                 $data,
154
-                function ($key) use ($fields) {
154
+                function($key) use ($fields) {
155 155
                     return in_array($key, $fields);
156 156
                 },
157 157
                 ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.