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 (#1975)
by Eduard
03:53
created
src/CrudTrait.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('json', 'json_array');
70 70
         $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('jsonb', 'json_array');
71 71
 
72
-        return ! $conn->getDoctrineColumn($table, $column_name)->getNotnull();
72
+        return !$conn->getDoctrineColumn($table, $column_name)->getNotnull();
73 73
     }
74 74
 
75 75
     /*
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function addFakes($columns = ['extras'])
87 87
     {
88 88
         foreach ($columns as $key => $column) {
89
-            if (! isset($this->attributes[$column])) {
89
+            if (!isset($this->attributes[$column])) {
90 90
                 continue;
91 91
             }
92 92
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             if ((is_array($column_contents) || is_object($column_contents) || $column_contents instanceof Traversable)) {
100 100
                 foreach ($column_contents as $fake_field_name => $fake_field_value) {
101 101
                     //TODO: handle mutlidimensional arrays.
102
-                    if (! is_array($fake_field_value) && ! is_object($fake_field_value)) {
102
+                    if (!is_array($fake_field_value) && !is_object($fake_field_value)) {
103 103
                         $this->setAttribute($fake_field_name, $fake_field_value);
104 104
                     }
105 105
                 }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function shouldDecodeFake($column)
139 139
     {
140
-        return ! in_array($column, array_keys($this->casts));
140
+        return !in_array($column, array_keys($this->casts));
141 141
     }
142 142
 
143 143
     /**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function shouldEncodeFake($column)
150 150
     {
151
-        return ! in_array($column, array_keys($this->casts));
151
+        return !in_array($column, array_keys($this->casts));
152 152
     }
153 153
 
154 154
     /*
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     public function uploadMultipleFilesToDisk($value, $attribute_name, $disk, $destination_path)
223 223
     {
224 224
         $request = \Request::instance();
225
-        if (! is_array($this->{$attribute_name})) {
225
+        if (!is_array($this->{$attribute_name})) {
226 226
             $attribute_value = json_decode($this->{$attribute_name}, true) ?? [];
227 227
         } else {
228 228
             $attribute_value = $this->{$attribute_name};
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         if ($files_to_clear) {
235 235
             foreach ($files_to_clear as $key => $filename) {
236 236
                 \Storage::disk($disk)->delete($filename);
237
-                $attribute_value = array_where($attribute_value, function ($value, $key) use ($filename) {
237
+                $attribute_value = array_where($attribute_value, function($value, $key) use ($filename) {
238 238
                     return $value != $filename;
239 239
                 });
240 240
             }
Please login to merge, or discard this patch.