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

Passed
Push — crud-uploads ( fa10c4...76b561 )
by Pedro
17:52 queued 02:57
created
src/app/Library/CrudPanel/Traits/Support/MacroableWithAttributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             if (isset($attributes['subfields'])) {
47 47
                 foreach ($attributes['subfields'] as $subfield) {
48 48
                     if (isset($subfield[$macro])) {
49
-                        $config = ! is_array($subfield[$macro]) ? [] : $subfield[$macro];
49
+                        $config = !is_array($subfield[$macro]) ? [] : $subfield[$macro];
50 50
                         $this->{$macro}($config, $subfield);
51 51
                     }
52 52
                 }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Uploads/Uploaders/Uploader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         $value = $entry->{$this->name};
186 186
 
187
-        if ($this->isMultiple && ! isset($entry->getCasts()[$this->name]) && is_string($value)) {
187
+        if ($this->isMultiple && !isset($entry->getCasts()[$this->name]) && is_string($value)) {
188 188
             $entry->{$this->name} = json_decode($value, true);
189 189
             return $entry;
190 190
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     public function deleteUploadedFile(Model $entry)
204 204
     {
205 205
         if ($this->deleteWhenEntryIsDeleted) {
206
-            if (! in_array(SoftDeletes::class, class_uses_recursive($entry), true)) {
206
+            if (!in_array(SoftDeletes::class, class_uses_recursive($entry), true)) {
207 207
                 $this->performFileDeletion($entry);
208 208
 
209 209
                 return;
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         $values = $entry->{$this->name};
227 227
 
228 228
         if ($this->isMultiple) {
229
-            if (! isset($entry->getCasts()[$this->name]) && is_string($values)) {
229
+            if (!isset($entry->getCasts()[$this->name]) && is_string($values)) {
230 230
                 $values = json_decode($values, true);
231 231
             }
232 232
         } else {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      */
248 248
     private function performFileDeletion($entry)
249 249
     {
250
-        if ($this->isRelationship || ! $this->isRepeatable) {
250
+        if ($this->isRelationship || !$this->isRepeatable) {
251 251
             $this->deleteFiles($entry);
252 252
 
253 253
             return;
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      * @param  array  $definition
264 264
      * @return self
265 265
      */
266
-    public static function for(array $crudObject, array $definition)
266
+    public static function for (array $crudObject, array $definition)
267 267
     {
268 268
         return new static($crudObject, $definition);
269 269
     }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Uploads/Uploaders/MultipleFiles.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 class MultipleFiles extends Uploader
11 11
 {
12
-    public static function for(array $field, $configuration)
12
+    public static function for (array $field, $configuration)
13 13
     {
14 14
         return (new self($field, $configuration))->multiple();
15 15
     }
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $value = $value ?? CRUD::getRequest()->file($this->getName());
21 21
         $previousFiles = $entry->getOriginal($this->getName()) ?? [];
22 22
 
23
-        if (! is_array($previousFiles) && is_string($previousFiles)) {
23
+        if (!is_array($previousFiles) && is_string($previousFiles)) {
24 24
             $previousFiles = json_decode($previousFiles, true);
25 25
         }
26 26
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 if (in_array($previousFile, $filesToDelete)) {
30 30
                     Storage::disk($this->getDisk())->delete($previousFile);
31 31
 
32
-                    $previousFiles = Arr::where($previousFiles, function ($value, $key) use ($previousFile) {
32
+                    $previousFiles = Arr::where($previousFiles, function($value, $key) use ($previousFile) {
33 33
                         return $value != $previousFile;
34 34
                     });
35 35
                 }
Please login to merge, or discard this patch.