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/Columns.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     /**
95 95
      * Move the most recently added column after the given target column.
96 96
      *
97
-     * @param string|array $targetColumn The target column name or array.
97
+     * @param string $targetColumn The target column name or array.
98 98
      */
99 99
     public function afterColumn($targetColumn)
100 100
     {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * Move the most recently added column before the given target column.
106 106
      *
107
-     * @param string|array $targetColumn The target column name or array.
107
+     * @param string $targetColumn The target column name or array.
108 108
      */
109 109
     public function beforeColumn($targetColumn)
110 110
     {
Please login to merge, or discard this patch.
src/PanelTraits/Fields.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -167,18 +167,18 @@
 block discarded – undo
167 167
     {
168 168
         foreach ($modifications as $key => $newValue) {
169 169
             switch (strtolower($form)) {
170
-          case 'create':
170
+            case 'create':
171 171
               $this->create_fields[$field][$key] = $newValue;
172
-              break;
172
+                break;
173 173
 
174
-          case 'update':
174
+            case 'update':
175 175
               $this->update_fields[$field][$key] = $newValue;
176
-              break;
176
+                break;
177 177
 
178
-          default:
178
+            default:
179 179
               $this->create_fields[$field][$key] = $newValue;
180
-              $this->update_fields[$field][$key] = $newValue;
181
-              break;
180
+                $this->update_fields[$field][$key] = $newValue;
181
+                break;
182 182
         }
183 183
         }
184 184
     }
Please login to merge, or discard this patch.
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.