We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -36,11 +36,11 @@ discard block |
||
| 36 | 36 | $this->crud->set('reorder.enabled', true); |
| 37 | 37 | $this->crud->allowAccess('reorder'); |
| 38 | 38 | |
| 39 | - $this->crud->operation('reorder', function () { |
|
| 39 | + $this->crud->operation('reorder', function() { |
|
| 40 | 40 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 41 | 41 | }); |
| 42 | 42 | |
| 43 | - $this->crud->operation('list', function () { |
|
| 43 | + $this->crud->operation('list', function() { |
|
| 44 | 44 | $this->crud->addButton('top', 'reorder', 'view', 'crud::buttons.reorder'); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | $this->crud->hasAccessOrFail('reorder'); |
| 58 | 58 | |
| 59 | - if (! $this->crud->isReorderEnabled()) { |
|
| 59 | + if (!$this->crud->isReorderEnabled()) { |
|
| 60 | 60 | abort(403, 'Reorder is disabled.'); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | $this->crud->allowAccess('update'); |
| 43 | 43 | |
| 44 | - $this->crud->operation('update', function () { |
|
| 44 | + $this->crud->operation('update', function() { |
|
| 45 | 45 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 46 | 46 | |
| 47 | 47 | if ($this->crud->getModel()->translationEnabled()) { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $this->crud->setupDefaultSaveActions(); |
| 56 | 56 | }); |
| 57 | 57 | |
| 58 | - $this->crud->operation(['list', 'show'], function () { |
|
| 58 | + $this->crud->operation(['list', 'show'], function() { |
|
| 59 | 59 | $this->crud->addButton('line', 'update', 'view', 'crud::buttons.update', 'end'); |
| 60 | 60 | }); |
| 61 | 61 | } |
@@ -41,12 +41,12 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $this->crud->allowAccess('create'); |
| 43 | 43 | |
| 44 | - $this->crud->operation('create', function () { |
|
| 44 | + $this->crud->operation('create', function() { |
|
| 45 | 45 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 46 | 46 | $this->crud->setupDefaultSaveActions(); |
| 47 | 47 | }); |
| 48 | 48 | |
| 49 | - $this->crud->operation('list', function () { |
|
| 49 | + $this->crud->operation('list', function() { |
|
| 50 | 50 | $this->crud->addButton('top', 'create', 'view', 'crud::buttons.create'); |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | // will update the password on an actual user model and persist it to the |
| 46 | 46 | // database. Otherwise we will parse the error and return the response. |
| 47 | 47 | $response = $this->broker()->reset( |
| 48 | - $this->credentials($request), function ($user, $password) { |
|
| 48 | + $this->credentials($request), function($user, $password) { |
|
| 49 | 49 | $this->resetPassword($user, $password); |
| 50 | 50 | } |
| 51 | 51 | ); |
@@ -34,11 +34,11 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function verify(Request $request) |
| 36 | 36 | { |
| 37 | - if (! hash_equals((string) $request->route('id'), (string) $request->user()->getKey())) { |
|
| 37 | + if (!hash_equals((string) $request->route('id'), (string) $request->user()->getKey())) { |
|
| 38 | 38 | throw new AuthorizationException; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - if (! hash_equals((string) $request->route('hash'), sha1($request->user()->getEmailForVerification()))) { |
|
| 41 | + if (!hash_equals((string) $request->route('hash'), sha1($request->user()->getEmailForVerification()))) { |
|
| 42 | 42 | throw new AuthorizationException; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | public function addFakes($columns = ['extras']) |
| 21 | 21 | { |
| 22 | 22 | foreach ($columns as $key => $column) { |
| 23 | - if (! isset($this->attributes[$column])) { |
|
| 23 | + if (!isset($this->attributes[$column])) { |
|
| 24 | 24 | continue; |
| 25 | 25 | } |
| 26 | 26 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function shouldDecodeFake($column) |
| 71 | 71 | { |
| 72 | - return ! in_array($column, array_keys($this->casts)); |
|
| 72 | + return !in_array($column, array_keys($this->casts)); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -81,6 +81,6 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function shouldEncodeFake($column) |
| 83 | 83 | { |
| 84 | - return ! in_array($column, array_keys($this->casts)); |
|
| 84 | + return !in_array($column, array_keys($this->casts)); |
|
| 85 | 85 | } |
| 86 | 86 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | */ |
| 58 | 58 | public function settings() |
| 59 | 59 | { |
| 60 | - return Arr::sort($this->settings, function ($value, $key) { |
|
| 60 | + return Arr::sort($this->settings, function($value, $key) { |
|
| 61 | 61 | return $key; |
| 62 | 62 | }); |
| 63 | 63 | } |
@@ -224,10 +224,10 @@ |
||
| 224 | 224 | // add the details_row button to the first column |
| 225 | 225 | if ($this->getOperationSetting('detailsRow')) { |
| 226 | 226 | $details_row_button = \View::make('crud::columns.inc.details_row_button') |
| 227 | - ->with('crud', $this) |
|
| 228 | - ->with('entry', $entry) |
|
| 229 | - ->with('row_number', $rowNumber) |
|
| 230 | - ->render(); |
|
| 227 | + ->with('crud', $this) |
|
| 228 | + ->with('entry', $entry) |
|
| 229 | + ->with('row_number', $rowNumber) |
|
| 230 | + ->render(); |
|
| 231 | 231 | $row_items[0] = $details_row_button.$row_items[0]; |
| 232 | 232 | } |
| 233 | 233 | |
@@ -23,9 +23,9 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | public function applySearchTerm($searchTerm) |
| 25 | 25 | { |
| 26 | - return $this->query->where(function ($query) use ($searchTerm) { |
|
| 26 | + return $this->query->where(function($query) use ($searchTerm) { |
|
| 27 | 27 | foreach ($this->columns() as $column) { |
| 28 | - if (! isset($column['type'])) { |
|
| 28 | + if (!isset($column['type'])) { |
|
| 29 | 29 | abort(400, 'Missing column type when trying to apply search term.'); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | case 'select': |
| 87 | 87 | case 'select_multiple': |
| 88 | - $query->orWhereHas($column['entity'], function ($q) use ($column, $searchTerm, $searchOperator) { |
|
| 88 | + $query->orWhereHas($column['entity'], function($q) use ($column, $searchTerm, $searchOperator) { |
|
| 89 | 89 | $q->where($this->getColumnWithTableNamePrefixed($q, $column['attribute']), $searchOperator, '%'.$searchTerm.'%'); |
| 90 | 90 | }); |
| 91 | 91 | break; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $column_number = (int) $order['column']; |
| 110 | 110 | $column_direction = (strtolower((string) $order['dir']) == 'asc' ? 'ASC' : 'DESC'); |
| 111 | 111 | $column = $this->findColumnById($column_number); |
| 112 | - if ($column['tableColumn'] && ! isset($column['orderLogic'])) { |
|
| 112 | + if ($column['tableColumn'] && !isset($column['orderLogic'])) { |
|
| 113 | 113 | if (method_exists($this->model, 'translationEnabled') && |
| 114 | 114 | $this->model->translationEnabled() && |
| 115 | 115 | $this->model->isTranslatableAttribute($column['name']) && |
@@ -136,12 +136,12 @@ discard block |
||
| 136 | 136 | $table = $this->model->getTable(); |
| 137 | 137 | $key = $this->model->getKeyName(); |
| 138 | 138 | |
| 139 | - $hasOrderByPrimaryKey = collect($orderBy)->some(function ($item) use ($key, $table) { |
|
| 139 | + $hasOrderByPrimaryKey = collect($orderBy)->some(function($item) use ($key, $table) { |
|
| 140 | 140 | return (isset($item['column']) && $item['column'] === $key) |
| 141 | 141 | || (isset($item['sql']) && str_contains($item['sql'], "$table.$key")); |
| 142 | 142 | }); |
| 143 | 143 | |
| 144 | - if (! $hasOrderByPrimaryKey) { |
|
| 144 | + if (!$hasOrderByPrimaryKey) { |
|
| 145 | 145 | $this->orderByWithPrefix($key, 'DESC'); |
| 146 | 146 | } |
| 147 | 147 | } |
@@ -320,13 +320,13 @@ discard block |
||
| 320 | 320 | if (isset($column['type'])) { |
| 321 | 321 | // create a list of paths to column blade views |
| 322 | 322 | // including the configured view_namespaces |
| 323 | - $columnPaths = array_map(function ($item) use ($column) { |
|
| 323 | + $columnPaths = array_map(function($item) use ($column) { |
|
| 324 | 324 | return $item.'.'.$column['type']; |
| 325 | 325 | }, ViewNamespaces::getFor('columns')); |
| 326 | 326 | |
| 327 | 327 | // but always fall back to the stock 'text' column |
| 328 | 328 | // if a view doesn't exist |
| 329 | - if (! in_array('crud::columns.text', $columnPaths)) { |
|
| 329 | + if (!in_array('crud::columns.text', $columnPaths)) { |
|
| 330 | 330 | $columnPaths[] = 'crud::columns.text'; |
| 331 | 331 | } |
| 332 | 332 | |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | */ |
| 366 | 366 | private function renderCellView($view, $column, $entry, $rowNumber = false) |
| 367 | 367 | { |
| 368 | - if (! view()->exists($view)) { |
|
| 368 | + if (!view()->exists($view)) { |
|
| 369 | 369 | $view = 'crud::columns.text'; // fallback to text column |
| 370 | 370 | } |
| 371 | 371 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | parent::setUp(); |
| 26 | 26 | |
| 27 | - $this->app->singleton('crud', function ($app) { |
|
| 27 | + $this->app->singleton('crud', function($app) { |
|
| 28 | 28 | return new CrudPanel($app); |
| 29 | 29 | }); |
| 30 | 30 | $this->crudPanel = app('crud'); |