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

Test Setup Failed
Pull Request — master (#2457)
by Cristian
06:18
created
src/app/Library/CrudPanel/Traits/Buttons.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $newBtns = collect([]);
22 22
 
23
-        $this->buttons()->each(function ($btn) use ($stack, $newBtns) {
23
+        $this->buttons()->each(function($btn) use ($stack, $newBtns) {
24 24
             if ($btn->stack != $stack) {
25 25
                 $newBtns->push($btn);
26 26
             }
27 27
         });
28 28
 
29
-        collect($buttons)->each(function ($btnKey) use ($newBtns) {
30
-            $btnInstance = $this->buttons()->filter(function ($btn) use ($btnKey) {
29
+        collect($buttons)->each(function($btnKey) use ($newBtns) {
30
+            $btnInstance = $this->buttons()->filter(function($btn) use ($btnKey) {
31 31
                 return $btn->name == $btnKey;
32 32
             })->first();
33 33
             
34
-            if (! $btnInstance) {
34
+            if (!$btnInstance) {
35 35
                 abort(500, 'Sorry, button cannot be found');
36 36
             }
37 37
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
          */
122 122
         $button = $this->buttons()->firstWhere('name', $name);
123 123
 
124
-        if (! $button) {
124
+        if (!$button) {
125 125
             abort(500, 'CRUD Button "'.$name.'" not found. Please check the button exists before you modify it.');
126 126
         }
127 127
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function removeButton($name, $stack = null)
144 144
     {
145
-        $this->setOperationSetting('buttons', $this->buttons()->reject(function ($button) use ($name, $stack) {
145
+        $this->setOperationSetting('buttons', $this->buttons()->reject(function($button) use ($name, $stack) {
146 146
             return $stack == null ? $button->name == $name : ($button->stack == $stack) && ($button->name == $name);
147 147
         }));
148 148
     }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function removeButtons($names, $stack = null)
155 155
     {
156
-        if (! empty($names)) {
156
+        if (!empty($names)) {
157 157
             foreach ($names as $name) {
158 158
                 $this->removeButton($name, $stack);
159 159
             }
@@ -167,14 +167,14 @@  discard block
 block discarded – undo
167 167
 
168 168
     public function removeAllButtonsFromStack($stack)
169 169
     {
170
-        $this->setOperationSetting('buttons', $this->buttons()->reject(function ($button) use ($stack) {
170
+        $this->setOperationSetting('buttons', $this->buttons()->reject(function($button) use ($stack) {
171 171
             return $button->stack == $stack;
172 172
         }));
173 173
     }
174 174
 
175 175
     public function removeButtonFromStack($name, $stack)
176 176
     {
177
-        $this->setOperationSetting('buttons', $this->buttons()->reject(function ($button) use ($name, $stack) {
177
+        $this->setOperationSetting('buttons', $this->buttons()->reject(function($button) use ($name, $stack) {
178 178
             return $button->name == $name && $button->stack == $stack;
179 179
         }));
180 180
     }
Please login to merge, or discard this patch.