Completed
Push — master ( 752801...9f98ec )
by Dmitry
02:17
created
src/Rutorika/Sortable/ToSortedManyTrait.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@  discard block
 block discarded – undo
11 11
 {
12 12
     protected $orderColumn;
13 13
     
14
+    /**
15
+     * @param string $orderColumn
16
+     */
14 17
     protected function setOrderColumn($orderColumn)
15 18
     {
16 19
         $this->orderColumn = $orderColumn;
@@ -115,7 +118,7 @@  discard block
 block discarded – undo
115 118
     /**
116 119
      * Get position of new relation.
117 120
      *
118
-     * @return float
121
+     * @return integer
119 122
      */
120 123
     protected function getNextPosition()
121 124
     {
Please login to merge, or discard this patch.
src/Rutorika/Sortable/MorphToSortedManyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         // For the inverse of the polymorphic many-to-many relations, we will change
59 59
         // the way we determine the foreign and other keys, as it is the opposite
60 60
         // of the morph-to-many method since we're figuring out these inverses.
61
-        $otherKey = $otherKey ?: $name.'_id';
61
+        $otherKey = $otherKey ?: $name . '_id';
62 62
 
63 63
         return $this->morphToSortedMany($related, $name, $orderColumn, $table, $foreignKey, $otherKey, true);
64 64
     }
Please login to merge, or discard this patch.