@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public static function setNewOrder($ids, $startOrder = 1) |
53 | 53 | { |
54 | - if (! is_array($ids) && ! $ids instanceof ArrayAccess) { |
|
54 | + if (!is_array($ids) && !$ids instanceof ArrayAccess) { |
|
55 | 55 | throw new SortableException('You must pass an array or ArrayAccess object to setNewOrder'); |
56 | 56 | } |
57 | 57 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | { |
75 | 75 | if ( |
76 | 76 | isset($this->sortable['order_column_name']) && |
77 | - ! empty($this->sortable['order_column_name']) |
|
77 | + !empty($this->sortable['order_column_name']) |
|
78 | 78 | ) { |
79 | 79 | return $this->sortable['order_column_name']; |
80 | 80 | } |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function shouldSortWhenCreating() |
91 | 91 | { |
92 | - if (! isset($this->sortable)) { |
|
92 | + if (!isset($this->sortable)) { |
|
93 | 93 | return true; |
94 | 94 | } |
95 | 95 | |
96 | - if (! isset($this->sortable['sort_when_creating'])) { |
|
96 | + if (!isset($this->sortable['sort_when_creating'])) { |
|
97 | 97 | return true; |
98 | 98 | } |
99 | 99 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | ->where($orderColumnName, '>', $this->$orderColumnName) |
115 | 115 | ->first(); |
116 | 116 | |
117 | - if (! $swapWithModel) { |
|
117 | + if (!$swapWithModel) { |
|
118 | 118 | return $this; |
119 | 119 | } |
120 | 120 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | ->where($orderColumnName, '<', $this->$orderColumnName) |
136 | 136 | ->first(); |
137 | 137 | |
138 | - if (! $swapWithModel) { |
|
138 | + if (!$swapWithModel) { |
|
139 | 139 | return $this; |
140 | 140 | } |
141 | 141 |