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

Test Setup Failed
Pull Request — master (#2308)
by Cristian
13:12 queued 07:03
created
src/app/Models/Traits/CrudTrait.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             //check if column exists in database
94 94
             $conn->getDoctrineColumn($table, $column_name);
95 95
 
96
-            return ! $conn->getDoctrineColumn($table, $column_name)->getNotnull();
96
+            return !$conn->getDoctrineColumn($table, $column_name)->getNotnull();
97 97
         } catch (Exception $e) {
98 98
             return true;
99 99
         }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function addFakes($columns = ['extras'])
114 114
     {
115 115
         foreach ($columns as $key => $column) {
116
-            if (! isset($this->attributes[$column])) {
116
+            if (!isset($this->attributes[$column])) {
117 117
                 continue;
118 118
             }
119 119
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function shouldDecodeFake($column)
164 164
     {
165
-        return ! in_array($column, array_keys($this->casts));
165
+        return !in_array($column, array_keys($this->casts));
166 166
     }
167 167
 
168 168
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function shouldEncodeFake($column)
176 176
     {
177
-        return ! in_array($column, array_keys($this->casts));
177
+        return !in_array($column, array_keys($this->casts));
178 178
     }
179 179
 
180 180
     /*
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     public function uploadMultipleFilesToDisk($value, $attribute_name, $disk, $destination_path)
249 249
     {
250 250
         $request = \Request::instance();
251
-        if (! is_array($this->{$attribute_name})) {
251
+        if (!is_array($this->{$attribute_name})) {
252 252
             $attribute_value = json_decode($this->{$attribute_name}, true) ?? [];
253 253
         } else {
254 254
             $attribute_value = $this->{$attribute_name};
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         if ($files_to_clear) {
261 261
             foreach ($files_to_clear as $key => $filename) {
262 262
                 \Storage::disk($disk)->delete($filename);
263
-                $attribute_value = array_where($attribute_value, function ($value, $key) use ($filename) {
263
+                $attribute_value = array_where($attribute_value, function($value, $key) use ($filename) {
264 264
                     return $value != $filename;
265 265
                 });
266 266
             }
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 
363 363
         //if non of the sensible defaults exists we get the first column from database that is not indexed (usually primary, foreign keys).
364 364
         foreach ($columns as $columnName => $columnProperties) {
365
-            if (! in_array($columnName, $indexedColumns)) {
365
+            if (!in_array($columnName, $indexedColumns)) {
366 366
 
367 367
                 //check for convention "field<_id>" in case developer didn't add foreign key constraints.
368 368
                 if (strpos($columnName, '_id') !== false) {
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/FetchAjaxOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             foreach ($whereToSearch as $searchColumn) {
99 99
                 $columnType = $conn->getSchemaBuilder()->getColumnType($table, $searchColumn);
100 100
 
101
-                $operation = ! isset($isFirst) ? 'where' : 'orWhere';
101
+                $operation = !isset($isFirst) ? 'where' : 'orWhere';
102 102
 
103 103
                 if ($columnType == 'string') {
104 104
                     $instance->{$operation}($searchColumn, 'LIKE', '%'.$search_term.'%');
Please login to merge, or discard this patch.