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 | $this->data['title'] = ucfirst($this->crud->entity_name_plural); |
38 | 38 | |
39 | 39 | // get all entries if AJAX is not enabled |
40 | - if (! $this->data['crud']->ajaxTable()) { |
|
40 | + if (!$this->data['crud']->ajaxTable()) { |
|
41 | 41 | $this->data['entries'] = $this->data['crud']->getEntries(); |
42 | 42 | } |
43 | 43 | |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | // is somewhat superfluous.. however if we are POSTing, it makes sense to actually have data to post. |
221 | 221 | // Perhaps the route shoud be better named to reflect this (e.g. just /model/{id}/revisions) (??) |
222 | 222 | $revisionId = \Request::input('revision_id', false); |
223 | - if(!$revisionId) { |
|
223 | + if (!$revisionId) { |
|
224 | 224 | abort(500, 'Can\'t restore revision without revision_id'); |
225 | 225 | } else { |
226 | 226 | $this->crud->restoreRevision($id, $revisionId); // do the update |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | { |
261 | 261 | $this->crud->hasAccessOrFail('reorder'); |
262 | 262 | |
263 | - if (! $this->crud->isReorderEnabled()) { |
|
263 | + if (!$this->crud->isReorderEnabled()) { |
|
264 | 264 | abort(403, 'Reorder is disabled.'); |
265 | 265 | } |
266 | 266 | |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | $dataTable = new DataTable($this->crud->query, $columns); |
332 | 332 | |
333 | 333 | // make the datatable use the column types instead of just echoing the text |
334 | - $dataTable->setFormatRowFunction(function ($entry) { |
|
334 | + $dataTable->setFormatRowFunction(function($entry) { |
|
335 | 335 | // get the actual HTML for each row's cell |
336 | 336 | $row_items = $this->crud->getRowViews($entry, $this->crud); |
337 | 337 |
@@ -15,13 +15,13 @@ |
||
15 | 15 | { |
16 | 16 | $revisions = []; |
17 | 17 | // Group revisions by change date |
18 | - foreach($this->getEntry($id)->revisionHistory as $history) { |
|
18 | + foreach ($this->getEntry($id)->revisionHistory as $history) { |
|
19 | 19 | |
20 | 20 | // Get just the date from the revision created timestamp |
21 | - $revisionDate = date('Y-m-d', strtotime((string)$history->created_at)); |
|
21 | + $revisionDate = date('Y-m-d', strtotime((string) $history->created_at)); |
|
22 | 22 | |
23 | 23 | // Be sure to instantiate the initial grouping array |
24 | - if(!array_key_exists($revisionDate, $revisions)) { |
|
24 | + if (!array_key_exists($revisionDate, $revisions)) { |
|
25 | 25 | $revisions[$revisionDate] = []; |
26 | 26 | } |
27 | 27 |