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 (#1353)
by Cristian
12:56
created
src/PanelTraits/Filters.php 1 patch
Spacing   +9 added lines, -9 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'])) {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $filter = $this->filters->firstWhere('name', $name);
141 141
 
142
-        if (! $filter) {
142
+        if (!$filter) {
143 143
             abort(500, 'CRUD Filter "'.$name.'" not found. Please check the filter exists before you modify it.');
144 144
         }
145 145
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
     public function removeFilter($name)
156 156
     {
157
-        $this->filters = $this->filters->reject(function ($filter) use ($name) {
157
+        $this->filters = $this->filters->reject(function($filter) use ($name) {
158 158
             return $filter->name == $name;
159 159
         });
160 160
     }
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         $this->type = $options['type'];
225 225
         $this->label = $options['label'];
226 226
 
227
-        if (! isset($options['placeholder'])) {
227
+        if (!isset($options['placeholder'])) {
228 228
             $this->placeholder = '';
229 229
         } else {
230 230
             $this->placeholder = $options['placeholder'];
@@ -241,16 +241,16 @@  discard block
 block discarded – undo
241 241
 
242 242
     public function checkOptionsIntegrity($options)
243 243
     {
244
-        if (! isset($options['name'])) {
244
+        if (!isset($options['name'])) {
245 245
             abort(500, 'Please make sure all your filters have names.');
246 246
         }
247
-        if (! isset($options['type'])) {
247
+        if (!isset($options['type'])) {
248 248
             abort(500, 'Please make sure all your filters have types.');
249 249
         }
250
-        if (! \View::exists('crud::filters.'.$options['type'])) {
250
+        if (!\View::exists('crud::filters.'.$options['type'])) {
251 251
             abort(500, 'No filter view named "'.$options['type'].'.blade.php" was found.');
252 252
         }
253
-        if (! isset($options['label'])) {
253
+        if (!isset($options['label'])) {
254 254
             abort(500, 'Please make sure all your filters have labels.');
255 255
         }
256 256
     }
Please login to merge, or discard this patch.