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
Pull Request — main (#4988)
by Cristian
28:25 queued 13:22
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/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.
src/app/Library/CrudPanel/Uploads/Uploaders/Uploader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     {
191 191
         $value = $entry->{$this->name};
192 192
 
193
-        if ($this->isMultiple && ! isset($entry->getCasts()[$this->name]) && is_string($value)) {
193
+        if ($this->isMultiple && !isset($entry->getCasts()[$this->name]) && is_string($value)) {
194 194
             $entry->{$this->name} = json_decode($value, true);
195 195
 
196 196
             return $entry;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     public function deleteUploadedFile(Model $entry)
211 211
     {
212 212
         if ($this->deleteWhenEntryIsDeleted) {
213
-            if (! in_array(SoftDeletes::class, class_uses_recursive($entry), true)) {
213
+            if (!in_array(SoftDeletes::class, class_uses_recursive($entry), true)) {
214 214
                 $this->performFileDeletion($entry);
215 215
 
216 216
                 return;
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
         if ($this->isMultiple) {
236 236
             // ensure we have an array of values when field is not casted in model.
237
-            if (! isset($entry->getCasts()[$this->name]) && is_string($values)) {
237
+            if (!isset($entry->getCasts()[$this->name]) && is_string($values)) {
238 238
                 $values = json_decode($values, true);
239 239
             }
240 240
             foreach ($values as $value) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     private function performFileDeletion($entry)
259 259
     {
260
-        if ($this->isRelationship || ! $this->isRepeatable) {
260
+        if ($this->isRelationship || !$this->isRepeatable) {
261 261
             $this->deleteFiles($entry);
262 262
 
263 263
             return;
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      * @param  array  $definition
274 274
      * @return self
275 275
      */
276
-    public static function for(array $crudObject, array $definition)
276
+    public static function for (array $crudObject, array $definition)
277 277
     {
278 278
         return new static($crudObject, $definition);
279 279
     }
Please login to merge, or discard this patch.