We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | </div> |
| 38 | 38 | <div class="col-sm-9"> |
| 39 | 39 | <!-- external link input --> |
| 40 | - <div class="page_or_link_value page_or_link_external_link <?php if (! isset($entry) || $entry->type != 'external_link') { |
|
| 40 | + <div class="page_or_link_value page_or_link_external_link <?php if (!isset($entry) || $entry->type != 'external_link') { |
|
| 41 | 41 | echo 'd-none'; |
| 42 | 42 | } ?>"> |
| 43 | 43 | <input |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | > |
| 57 | 57 | </div> |
| 58 | 58 | <!-- internal link input --> |
| 59 | - <div class="page_or_link_value page_or_link_internal_link <?php if (! isset($entry) || $entry->type != 'internal_link') { |
|
| 59 | + <div class="page_or_link_value page_or_link_internal_link <?php if (!isset($entry) || $entry->type != 'internal_link') { |
|
| 60 | 60 | echo 'd-none'; |
| 61 | 61 | } ?>"> |
| 62 | 62 | <input |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $fakeFieldKey = isset($field['store_in']) ? $field['store_in'] : 'extras'; |
| 33 | 33 | $this->addCompactedField($requestInput, $fieldName, $fakeFieldKey); |
| 34 | 34 | |
| 35 | - if (! in_array($fakeFieldKey, $compactedFakeFields)) { |
|
| 35 | + if (!in_array($fakeFieldKey, $compactedFakeFields)) { |
|
| 36 | 36 | $compactedFakeFields[] = $fakeFieldKey; |
| 37 | 37 | } |
| 38 | 38 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | // json_encode all fake_value columns if applicable in the database, so they can be properly stored and interpreted |
| 43 | 43 | foreach ($compactedFakeFields as $value) { |
| 44 | - if (! (property_exists($this->model, 'translatable') && in_array($value, $this->model->getTranslatableAttributes(), true)) && $this->model->shouldEncodeFake($value)) { |
|
| 44 | + if (!(property_exists($this->model, 'translatable') && in_array($value, $this->model->getTranslatableAttributes(), true)) && $this->model->shouldEncodeFake($value)) { |
|
| 45 | 45 | $requestInput[$value] = json_encode($requestInput[$value]); |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | { |
| 39 | 39 | $id = $this->getCurrentEntryId(); |
| 40 | 40 | |
| 41 | - if (! $id) { |
|
| 41 | + if (!$id) { |
|
| 42 | 42 | return false; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function getEntry($id) |
| 56 | 56 | { |
| 57 | - if (! $this->entry) { |
|
| 57 | + if (!$this->entry) { |
|
| 58 | 58 | $this->entry = $this->model->findOrFail($id); |
| 59 | 59 | $this->entry = $this->entry->withFakes(); |
| 60 | 60 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | { |
| 204 | 204 | // If the default Page Length isn't in the menu's values, Add it the beginnin and resort all to show a croissant list. |
| 205 | 205 | // assume both arrays are the same length. |
| 206 | - if (! in_array($this->getDefaultPageLength(), $this->getOperationSetting('pageLengthMenu')[0])) { |
|
| 206 | + if (!in_array($this->getDefaultPageLength(), $this->getOperationSetting('pageLengthMenu')[0])) { |
|
| 207 | 207 | // Loop through 2 arrays of prop. pageLengthMenu |
| 208 | 208 | foreach ($this->getOperationSetting('pageLengthMenu') as $key => &$page_length_choices) { |
| 209 | 209 | // This is a condition that should be always true. |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $this->crud->allowAccess('delete'); |
| 31 | 31 | |
| 32 | - $this->crud->operation('delete', function () { |
|
| 32 | + $this->crud->operation('delete', function() { |
|
| 33 | 33 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - $this->crud->operation(['list', 'show'], function () { |
|
| 36 | + $this->crud->operation(['list', 'show'], function() { |
|
| 37 | 37 | $this->crud->addButton('line', 'delete', 'view', 'crud::buttons.delete', 'end'); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $this->crud->allowAccess('clone'); |
| 31 | 31 | |
| 32 | - $this->crud->operation('clone', function () { |
|
| 32 | + $this->crud->operation('clone', function() { |
|
| 33 | 33 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - $this->crud->operation(['list', 'show'], function () { |
|
| 36 | + $this->crud->operation(['list', 'show'], function() { |
|
| 37 | 37 | $this->crud->addButton('line', 'clone', 'view', 'crud::buttons.clone', 'end'); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -30,11 +30,11 @@ |
||
| 30 | 30 | $this->crud->allowAccess('show'); |
| 31 | 31 | $this->crud->setOperationSetting('setFromDb', true); |
| 32 | 32 | |
| 33 | - $this->crud->operation('show', function () { |
|
| 33 | + $this->crud->operation('show', function() { |
|
| 34 | 34 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 35 | 35 | }); |
| 36 | 36 | |
| 37 | - $this->crud->operation('list', function () { |
|
| 37 | + $this->crud->operation('list', function() { |
|
| 38 | 38 | $this->crud->addButton('line', 'show', 'view', 'crud::buttons.show', 'beginning'); |
| 39 | 39 | }); |
| 40 | 40 | } |
@@ -36,11 +36,11 @@ discard block |
||
| 36 | 36 | // allow access to the operation |
| 37 | 37 | $this->crud->allowAccess('revisions'); |
| 38 | 38 | |
| 39 | - $this->crud->operation('revisions', function () { |
|
| 39 | + $this->crud->operation('revisions', function() { |
|
| 40 | 40 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 41 | 41 | }); |
| 42 | 42 | |
| 43 | - $this->crud->operation(['list', 'show'], function () { |
|
| 43 | + $this->crud->operation(['list', 'show'], function() { |
|
| 44 | 44 | // add a button in the line stack |
| 45 | 45 | $this->crud->addButton('line', 'revisions', 'view', 'crud::buttons.revisions', 'end'); |
| 46 | 46 | }); |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $this->crud->hasAccessOrFail('revisions'); |
| 89 | 89 | |
| 90 | 90 | $revisionId = \Request::input('revision_id', false); |
| 91 | - if (! $revisionId) { |
|
| 91 | + if (!$revisionId) { |
|
| 92 | 92 | abort(500, 'Can\'t restore revision without revision_id'); |
| 93 | 93 | } else { |
| 94 | 94 | $this->crud->restoreRevision($id, $revisionId); // do the update |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $this->crud->allowAccess('bulkDelete'); |
| 31 | 31 | |
| 32 | - $this->crud->operation('bulkDelete', function () { |
|
| 32 | + $this->crud->operation('bulkDelete', function() { |
|
| 33 | 33 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - $this->crud->operation('list', function () { |
|
| 36 | + $this->crud->operation('list', function() { |
|
| 37 | 37 | $this->crud->enableBulkActions(); |
| 38 | 38 | $this->crud->addButton('bottom', 'bulk_delete', 'view', 'crud::buttons.bulk_delete'); |
| 39 | 39 | }); |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $this->crud->allowAccess('bulkClone'); |
| 31 | 31 | |
| 32 | - $this->crud->operation('bulkClone', function () { |
|
| 32 | + $this->crud->operation('bulkClone', function() { |
|
| 33 | 33 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - $this->crud->operation('list', function () { |
|
| 36 | + $this->crud->operation('list', function() { |
|
| 37 | 37 | $this->crud->enableBulkActions(); |
| 38 | 38 | $this->crud->addButton('bottom', 'bulk_clone', 'view', 'crud::buttons.bulk_clone', 'beginning'); |
| 39 | 39 | }); |