@@ -123,7 +123,7 @@ |
||
| 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 | { |
@@ -70,7 +70,7 @@ |
||
| 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 | { |
@@ -202,7 +202,7 @@ discard block |
||
| 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 |
||
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | /** |
| 213 | - * @param callable|\Closure $callback |
|
| 213 | + * @param \Closure $callback |
|
| 214 | 214 | * |
| 215 | 215 | * @return mixed |
| 216 | 216 | */ |
@@ -17,7 +17,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |