Completed
Push — master ( a6f786...146ded )
by Alexander
01:35
created
src/traits/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@
 block discarded – undo
81 81
     public static function find(array $conditions = [], array $options = []): \Generator
82 82
     {
83 83
         $conditions = self::filterByFields($conditions);
84
-        $with = array_key_exists('with', $options) ? (array)$options['with'] : false;
84
+        $with = array_key_exists('with', $options) ? (array) $options['with'] : false;
85 85
         unset($options['with']);
86 86
         $result = static::db()->find(static::table(), $conditions, $options);
87 87
         $pk = static::pk();
88
-        $gen = function () use ($result, $pk, $with) {
88
+        $gen = function() use ($result, $pk, $with) {
89 89
             foreach ($result as $row) {
90 90
                 $model = new static($row);
91 91
                 if ($with) {
Please login to merge, or discard this patch.