@@ -17,16 +17,16 @@ |
||
17 | 17 | */ |
18 | 18 | protected static function bootOrderableModel() |
19 | 19 | { |
20 | - static::creating(function (Model $row) { |
|
20 | + static::creating(function(Model $row) { |
|
21 | 21 | $row->updateOrderFieldOnCreate(); |
22 | 22 | }); |
23 | 23 | |
24 | - static::deleted(function (Model $row) { |
|
24 | + static::deleted(function(Model $row) { |
|
25 | 25 | $row->updateOrderFieldOnDelete(); |
26 | 26 | }); |
27 | 27 | |
28 | 28 | if (in_array("Illuminate\Database\Eloquent\SoftDeletes", trait_uses_recursive(new static()))) { |
29 | - static::restoring(function (Model $row) { |
|
29 | + static::restoring(function(Model $row) { |
|
30 | 30 | $row->updateOrderFieldOnRestore(); |
31 | 31 | }); |
32 | 32 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | if ($column instanceof \SleepingOwl\Admin\Display\Column\Control) { |
26 | 26 | $column->initialize(); |
27 | 27 | } |
28 | - if($column instanceof \SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface) { |
|
28 | + if ($column instanceof \SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface) { |
|
29 | 29 | ?> |
30 | 30 | |
31 | 31 | <td> |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function getModelConfiguration() |
59 | 59 | { |
60 | - if (! $this->hasModel()) { |
|
60 | + if (!$this->hasModel()) { |
|
61 | 61 | return; |
62 | 62 | } |
63 | 63 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public function hasModel() |
71 | 71 | { |
72 | - return ! is_null($this->model) && class_exists($this->model); |
|
72 | + return !is_null($this->model) && class_exists($this->model); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -113,9 +113,9 @@ discard block |
||
113 | 113 | */ |
114 | 114 | public function getAccessLogic() |
115 | 115 | { |
116 | - if (! is_callable($this->accessLogic)) { |
|
116 | + if (!is_callable($this->accessLogic)) { |
|
117 | 117 | if ($this->hasModel()) { |
118 | - return function () { |
|
118 | + return function() { |
|
119 | 119 | return $this->getModelConfiguration()->isDisplayable(); |
120 | 120 | }; |
121 | 121 | } |
@@ -131,13 +131,13 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function render($view = null) |
133 | 133 | { |
134 | - if ($this->hasChild() && ! $this->hasClassProperty($class = config('navigation.class.has_child', 'treeview'))) { |
|
134 | + if ($this->hasChild() && !$this->hasClassProperty($class = config('navigation.class.has_child', 'treeview'))) { |
|
135 | 135 | $this->setHtmlAttribute('class', $class); |
136 | 136 | } |
137 | 137 | |
138 | 138 | $data = $this->toArray(); |
139 | 139 | |
140 | - if (! is_null($view)) { |
|
140 | + if (!is_null($view)) { |
|
141 | 141 | return view($view, $data)->render(); |
142 | 142 | } |
143 | 143 |