Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#139)
by Cristian
02:59
created
src/app/Http/Controllers/CrudController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         // is somewhat superfluous.. however if we are POSTing, it makes sense to actually have data to post.
220 220
         // Perhaps the route shoud be better named to reflect this (e.g. just /model/{id}/revisions) (??)
221 221
         $revisionId = \Request::input('revision_id', false);
222
-        if (! $revisionId) {
222
+        if (!$revisionId) {
223 223
             abort(500, 'Can\'t restore revision without revision_id');
224 224
         } else {
225 225
             $this->crud->restoreRevision($id, $revisionId); // do the update
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     {
260 260
         $this->crud->hasAccessOrFail('reorder');
261 261
 
262
-        if (! $this->crud->isReorderEnabled()) {
262
+        if (!$this->crud->isReorderEnabled()) {
263 263
             abort(403, 'Reorder is disabled.');
264 264
         }
265 265
 
@@ -324,9 +324,9 @@  discard block
 block discarded – undo
324 324
 
325 325
         // crate an array with the names of the searchable columns
326 326
         $columns = collect($this->crud->columns)
327
-                    ->reject(function ($column, $key) {
327
+                    ->reject(function($column, $key) {
328 328
                     // the select_multiple columns are not searchable
329
-                        return isset($column['type']) && $column['type']=='select_multiple';
329
+                        return isset($column['type']) && $column['type'] == 'select_multiple';
330 330
                     })
331 331
                     ->pluck('name')
332 332
                     // add the primary key, otherwise the buttons won't work
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
         $dataTable = new DataTable($this->crud->query, $columns);
338 338
 
339 339
         // make the datatable use the column types instead of just echoing the text
340
-        $dataTable->setFormatRowFunction(function ($entry) {
340
+        $dataTable->setFormatRowFunction(function($entry) {
341 341
             // get the actual HTML for each row's cell
342 342
             $row_items = $this->crud->getRowViews($entry, $this->crud);
343 343
 
Please login to merge, or discard this patch.