We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -20,18 +20,18 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |