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 ( 61e8dc...87f77e )
by Pedro
28:11 queued 13:15
created
src/app/Library/Uploaders/Uploader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /*******************************
57 57
      * Static methods
58 58
      *******************************/
59
-    public static function for(array $crudObject, array $definition): UploaderInterface
59
+    public static function for (array $crudObject, array $definition): UploaderInterface
60 60
     {
61 61
         return new static($crudObject, $definition);
62 62
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function deleteUploadedFiles(Model $entry): void
88 88
     {
89 89
         if ($this->deleteWhenEntryIsDeleted) {
90
-            if (! in_array(SoftDeletes::class, class_uses_recursive($entry), true)) {
90
+            if (!in_array(SoftDeletes::class, class_uses_recursive($entry), true)) {
91 91
                 $this->performFileDeletion($entry);
92 92
 
93 93
                 return;
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $value = $entry->{$this->name};
176 176
 
177 177
         if ($this->handleMultipleFiles) {
178
-            if (! isset($entry->getCasts()[$this->name]) && is_string($value)) {
178
+            if (!isset($entry->getCasts()[$this->name]) && is_string($value)) {
179 179
                 $entry->{$this->name} = json_decode($value, true);
180 180
             }
181 181
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
         if ($this->handleMultipleFiles) {
195 195
             // ensure we have an array of values when field is not casted in model.
196
-            if (! isset($entry->getCasts()[$this->name]) && is_string($values)) {
196
+            if (!isset($entry->getCasts()[$this->name]) && is_string($values)) {
197 197
                 $values = json_decode($values, true);
198 198
             }
199 199
             foreach ($values as $value) {
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
     private function performFileDeletion(Model $entry)
211 211
     {
212
-        if ($this->isRelationship || ! $this->handleRepeatableFiles) {
212
+        if ($this->isRelationship || !$this->handleRepeatableFiles) {
213 213
             $this->deleteFiles($entry);
214 214
 
215 215
             return;
Please login to merge, or discard this patch.
src/app/Library/Uploaders/Support/FileNameGenerator.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 FileNameGenerator implements FileNameGeneratorInterface
11 11
 {
12
-    public function getName(string|UploadedFile|File $file): string
12
+    public function getName(string | UploadedFile | File $file): string
13 13
     {
14 14
         if (is_object($file) && get_class($file) === File::class) {
15 15
             return $file->getFileName();
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
         return $this->getFileName($file).'.'.$this->getExtensionFromFile($file);
19 19
     }
20 20
 
21
-    private function getExtensionFromFile(string|UploadedFile $file): string
21
+    private function getExtensionFromFile(string | UploadedFile $file): string
22 22
     {
23 23
         return is_a($file, UploadedFile::class, true) ? $file->extension() : Str::after(mime_content_type($file), '/');
24 24
     }
25 25
 
26
-    private function getFileName(string|UploadedFile $file): string
26
+    private function getFileName(string | UploadedFile $file): string
27 27
     {
28 28
         if (is_file($file)) {
29 29
             return Str::of($file->getClientOriginalName())->beforeLast('.')->slug()->append('-'.Str::random(4));
Please login to merge, or discard this patch.