Completed
Branch master (93aacf)
by Dmitry
07:39
created
src/Rutorika/Sortable/BelongsToSortedMany.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * Get position of new relation.
125 125
      *
126
-     * @return int
126
+     * @return double
127 127
      */
128 128
     protected function getNextPosition()
129 129
     {
Please login to merge, or discard this patch.
src/Rutorika/Sortable/SortableController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      * @param array   $sortableEntities
71 71
      * @param Request $request
72 72
      *
73
-     * @return mixed
73
+     * @return \Illuminate\Validation\Validator
74 74
      */
75 75
     protected function getValidator($sortableEntities, $request)
76 76
     {
Please login to merge, or discard this patch.
src/Rutorika/Sortable/SortableTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     /**
203 203
      * @param int $limit
204 204
      *
205
-     * @return \Illuminate\Database\Eloquent\Collection|static[]
205
+     * @return \Illuminate\Database\Eloquent\Collection
206 206
      */
207 207
     public function getNext($limit = 0)
208 208
     {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     }
211 211
 
212 212
     /**
213
-     * @param callable|\Closure $callback
213
+     * @param \Closure $callback
214 214
      *
215 215
      * @return mixed
216 216
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     public static function bootSortableTrait()
18 18
     {
19 19
         static::creating(
20
-            function ($model) {
20
+            function($model) {
21 21
                 $sortableGroupField = $model->getSortableGroupField();
22 22
 
23 23
                 if ($sortableGroupField) {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         /** @var \Illuminate\Database\Connection $connection */
75 75
         $connection = $this->getConnection();
76 76
 
77
-        $this->_transaction(function () use ($connection, $entity) {
77
+        $this->_transaction(function() use ($connection, $entity) {
78 78
             /** @var \Illuminate\Database\Eloquent\Builder $query */
79 79
             $query = $connection->table($this->getTable());
80 80
             $query = $this->_applySortableGroup($query);
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         /** @var \Illuminate\Database\Connection $connection */
126 126
         $connection = $this->getConnection();
127 127
 
128
-        $this->_transaction(function () use ($connection, $entity) {
128
+        $this->_transaction(function() use ($connection, $entity) {
129 129
             $query = $connection->table($this->getTable());
130 130
             $query = $this->_applySortableGroup($query);
131 131
 
Please login to merge, or discard this patch.