Completed
Pull Request — master (#14)
by Martin
04:00
created
src/Rutorika/Sortable/MorphToSortedManyTrait.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,8 @@
 block discarded – undo
23 23
      * @param string $table
24 24
      * @param string $foreignKey
25 25
      * @param string $otherKey
26
-     * @param string $relation
27 26
      *
28
-     * @return BelongsToSortedMany
27
+     * @return MorphToSortedMany
29 28
      */
30 29
     public function morphToSortedMany($related, $name, $orderColumn = 'position', $table = null, $foreignKey = null, $otherKey = null, $inverse = false)
31 30
     {
Please login to merge, or discard this patch.
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.