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

Passed
Push — fix-dropdown-action-buttons ( 05fd44...0b95d6 )
by
unknown
26:27 queued 11:28
created
src/app/Http/Controllers/Operations/ReorderOperation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/UpdateOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/CreateOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/app/Library/Auth/ResetsPasswords.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/app/Library/Auth/VerifiesEmails.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/app/Models/Traits/HasFakeFields.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Search.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -224,10 +224,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Unit/CrudPanel/BaseCrudPanelTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.