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 (#1389)
by Thomas
10:09 queued 04:28
created
src/PanelTraits/Filters.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
     public function filtersEnabled()
10 10
     {
11
-        return ! is_array($this->filters);
11
+        return !is_array($this->filters);
12 12
     }
13 13
 
14 14
     public function filtersDisabled()
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->enableFilters();
54 54
 
55 55
         // check if another filter with the same name exists
56
-        if (! isset($options['name'])) {
56
+        if (!isset($options['name'])) {
57 57
             abort(500, 'All your filters need names.');
58 58
         }
59 59
         if ($this->filters->contains('name', $options['name'])) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
     public function removeFilter($name)
139 139
     {
140
-        $this->filters = $this->filters->reject(function ($filter) use ($name) {
140
+        $this->filters = $this->filters->reject(function($filter) use ($name) {
141 141
             return $filter->name == $name;
142 142
         });
143 143
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         $this->type = $options['type'];
208 208
         $this->label = $options['label'];
209 209
 
210
-        if (! isset($options['placeholder'])) {
210
+        if (!isset($options['placeholder'])) {
211 211
             $this->placeholder = '';
212 212
         } else {
213 213
             $this->placeholder = $options['placeholder'];
@@ -225,24 +225,24 @@  discard block
 block discarded – undo
225 225
     public function setView()
226 226
     {
227 227
         if (isset($this->options['view_namespace'])) {
228
-            $this->view = $this->options['view_namespace'] . '.' . $this->type;
228
+            $this->view = $this->options['view_namespace'].'.'.$this->type;
229 229
         } else {
230
-            $this->view = 'crud::filters.' . $this->type;
230
+            $this->view = 'crud::filters.'.$this->type;
231 231
         }
232 232
     }
233 233
 
234 234
     public function checkOptionsIntegrity($options)
235 235
     {
236
-        if (! isset($options['name'])) {
236
+        if (!isset($options['name'])) {
237 237
             abort(500, 'Please make sure all your filters have names.');
238 238
         }
239
-        if (! isset($options['type'])) {
239
+        if (!isset($options['type'])) {
240 240
             abort(500, 'Please make sure all your filters have types.');
241 241
         }
242
-        if (! \View::exists('crud::filters.'.$options['type'])) {
242
+        if (!\View::exists('crud::filters.'.$options['type'])) {
243 243
             abort(500, 'No filter view named "'.$options['type'].'.blade.php" was found.');
244 244
         }
245
-        if (! isset($options['label'])) {
245
+        if (!isset($options['label'])) {
246 246
             abort(500, 'Please make sure all your filters have labels.');
247 247
         }
248 248
     }
Please login to merge, or discard this patch.