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
Push — master ( bb9c8f...9f4459 )
by Cristian
06:51 queued 11s
created
src/app/Library/CrudPanel/Traits/Fields.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -37,24 +37,24 @@  discard block
 block discarded – undo
37 37
 
38 38
         // if this is a relation type field and no corresponding model was specified, get it from the relation method
39 39
         // defined in the main model
40
-        if (isset($newField['entity']) && ! isset($newField['model'])) {
40
+        if (isset($newField['entity']) && !isset($newField['model'])) {
41 41
             $newField['model'] = $this->getRelationModel($newField['entity']);
42 42
         }
43 43
 
44 44
         // if the label is missing, we should set it
45
-        if (! isset($newField['label'])) {
45
+        if (!isset($newField['label'])) {
46 46
             $label = is_array($newField['name']) ? $newField['name'][0] : $newField['name'];
47 47
             $newField['label'] = mb_ucfirst(str_replace('_', ' ', $label));
48 48
         }
49 49
 
50 50
         // if the field type is missing, we should set it
51
-        if (! isset($newField['type'])) {
51
+        if (!isset($newField['type'])) {
52 52
             $newField['type'] = $this->getFieldTypeFromDbColumnType($newField['name']);
53 53
         }
54 54
 
55 55
         // if a tab was mentioned, we should enable it
56 56
         if (isset($newField['tab'])) {
57
-            if (! $this->tabsEnabled()) {
57
+            if (!$this->tabsEnabled()) {
58 58
                 $this->enableTabs();
59 59
             }
60 60
         }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function afterField($targetFieldName)
90 90
     {
91
-        $this->transformFields(function ($fields) use ($targetFieldName) {
91
+        $this->transformFields(function($fields) use ($targetFieldName) {
92 92
             return $this->moveField($fields, $targetFieldName, false);
93 93
         });
94 94
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function beforeField($targetFieldName)
102 102
     {
103
-        $this->transformFields(function ($fields) use ($targetFieldName) {
103
+        $this->transformFields(function($fields) use ($targetFieldName) {
104 104
             return $this->moveField($fields, $targetFieldName, true);
105 105
         });
106 106
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function removeField($name)
144 144
     {
145
-        $this->transformFields(function ($fields) use ($name) {
145
+        $this->transformFields(function($fields) use ($name) {
146 146
             array_forget($fields, $name);
147 147
 
148 148
             return $fields;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function removeFields($array_of_names)
158 158
     {
159
-        if (! empty($array_of_names)) {
159
+        if (!empty($array_of_names)) {
160 160
             foreach ($array_of_names as $name) {
161 161
                 $this->removeField($name);
162 162
             }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     public function removeAllFields()
170 170
     {
171 171
         $current_fields = $this->getCurrentFields();
172
-        if (! empty($current_fields)) {
172
+        if (!empty($current_fields)) {
173 173
             foreach ($current_fields as $field) {
174 174
                 $this->removeField($field['name']);
175 175
             }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
                 $jsonCastables = ['array', 'object', 'json'];
244 244
                 $fieldCasting = $casted_attributes[$field['name']];
245 245
 
246
-                if (in_array($fieldCasting, $jsonCastables) && isset($data[$field['name']]) && ! empty($data[$field['name']]) && ! is_array($data[$field['name']])) {
246
+                if (in_array($fieldCasting, $jsonCastables) && isset($data[$field['name']]) && !empty($data[$field['name']]) && !is_array($data[$field['name']])) {
247 247
                     try {
248 248
                         $data[$field['name']] = json_decode($data[$field['name']]);
249 249
                     } catch (\Exception $e) {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      */
273 273
     public function orderFields($order)
274 274
     {
275
-        $this->transformFields(function ($fields) use ($order) {
275
+        $this->transformFields(function($fields) use ($order) {
276 276
             return $this->applyOrderToFields($fields, $order);
277 277
         });
278 278
     }
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
     public function hasUploadFields()
336 336
     {
337 337
         $fields = $this->getFields();
338
-        $upload_fields = array_where($fields, function ($value, $key) {
338
+        $upload_fields = array_where($fields, function($value, $key) {
339 339
             return isset($value['upload']) && $value['upload'] == true;
340 340
         });
341 341
 
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
         $alreadyLoaded = $this->getLoadedFieldTypes();
396 396
         $type = $this->getFieldTypeWithNamespace($field);
397 397
 
398
-        if (! in_array($type, $this->getLoadedFieldTypes(), true)) {
398
+        if (!in_array($type, $this->getLoadedFieldTypes(), true)) {
399 399
             $alreadyLoaded[] = $type;
400 400
             $this->setLoadedFieldTypes($alreadyLoaded);
401 401
 
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
      */
437 437
     public function fieldTypeNotLoaded($field)
438 438
     {
439
-        return ! in_array($this->getFieldTypeWithNamespace($field), $this->getLoadedFieldTypes());
439
+        return !in_array($this->getFieldTypeWithNamespace($field), $this->getLoadedFieldTypes());
440 440
     }
441 441
 
442 442
     /**
Please login to merge, or discard this patch.