We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -36,7 +36,7 @@ |
||
36 | 36 | $this->crud->set('reorder.enabled', true); |
37 | 37 | $this->crud->allowAccess('reorder'); |
38 | 38 | |
39 | - $this->crud->operation('list', function () { |
|
39 | + $this->crud->operation('list', function() { |
|
40 | 40 | $this->crud->addButton('top', 'reorder', 'view', 'crud::buttons.reorder'); |
41 | 41 | }); |
42 | 42 | } |
@@ -110,7 +110,7 @@ |
||
110 | 110 | // if there was an order set, this will be the last one (after all others were applied) |
111 | 111 | $orderBy = $this->crud->query->getQuery()->orders; |
112 | 112 | $hasOrderByPrimaryKey = false; |
113 | - collect($orderBy)->each(function ($item, $key) use ($hasOrderByPrimaryKey) { |
|
113 | + collect($orderBy)->each(function($item, $key) use ($hasOrderByPrimaryKey) { |
|
114 | 114 | if ($item['column'] == $this->crud->model->getKeyName()) { |
115 | 115 | $hasOrderByPrimaryKey = true; |
116 | 116 |
@@ -233,7 +233,7 @@ |
||
233 | 233 | if ($files_to_clear) { |
234 | 234 | foreach ($files_to_clear as $key => $filename) { |
235 | 235 | \Storage::disk($disk)->delete($filename); |
236 | - $attribute_value = array_where($attribute_value, function ($value, $key) use ($filename) { |
|
236 | + $attribute_value = array_where($attribute_value, function($value, $key) use ($filename) { |
|
237 | 237 | return $value != $filename; |
238 | 238 | }); |
239 | 239 | } |
@@ -18,14 +18,14 @@ |
||
18 | 18 | |
19 | 19 | public static function bootHasParent() |
20 | 20 | { |
21 | - static::creating(function ($model) { |
|
21 | + static::creating(function($model) { |
|
22 | 22 | if ($model->parentHasHasChildrenTrait()) { |
23 | 23 | $model->forceFill( |
24 | 24 | [$model->getInheritanceColumn() => $model->classToAlias(get_class($model))] |
25 | 25 | ); |
26 | 26 | } |
27 | 27 | }); |
28 | - static::addGlobalScope(function ($query) { |
|
28 | + static::addGlobalScope(function($query) { |
|
29 | 29 | $instance = new static(); |
30 | 30 | if ($instance->parentHasHasChildrenTrait()) { |
31 | 31 | $query->where($instance->getTable().'.'.$instance->getInheritanceColumn(), $instance->classToAlias(get_class($instance))); |