Completed
Pull Request — master (#36)
by
unknown
01:38
created
src/Rutorika/Sortable/SortableTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     }
288 288
 
289 289
     /**
290
-     * @param string|array $sortableGroupField
290
+     * @param string|null $sortableGroupField
291 291
      * @param Model        $entity
292 292
      *
293 293
      * @throws SortableException
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     }
309 309
 
310 310
     /**
311
-     * @param Model|SortableTrait $entity1
311
+     * @param SortableTrait $entity1
312 312
      * @param Model               $entity2
313 313
      * @param string              $field
314 314
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
                 if ($oldList !== $newList) {
100 100
                     $query = static::applySortableGroup(static::on(), $entity);
101 101
                     $oldPosition = $query->max($sortableField) + 1;
102
-                    $this->setAttribute($groupField,$newList);
102
+                    $this->setAttribute($groupField, $newList);
103 103
                 }
104 104
             }
105 105
 
Please login to merge, or discard this patch.