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 (#1538)
by Thomas
03:24 queued 13s
created
src/PanelTraits/Fields.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -26,28 +26,28 @@  discard block
 block discarded – undo
26 26
 
27 27
         // if this is a relation type field and no corresponding model was specified, get it from the relation method
28 28
         // defined in the main model
29
-        if (isset($completeFieldsArray['entity']) && ! isset($completeFieldsArray['model'])) {
29
+        if (isset($completeFieldsArray['entity']) && !isset($completeFieldsArray['model'])) {
30 30
             $completeFieldsArray['model'] = $this->getRelationModel($completeFieldsArray['entity']);
31 31
         }
32 32
 
33 33
         // if the label is missing, we should set it
34
-        if (! isset($completeFieldsArray['label'])) {
34
+        if (!isset($completeFieldsArray['label'])) {
35 35
             $completeFieldsArray['label'] = ucfirst($completeFieldsArray['name']);
36 36
         }
37 37
 
38 38
         // if the field type is missing, we should set it
39
-        if (! isset($completeFieldsArray['type'])) {
39
+        if (!isset($completeFieldsArray['type'])) {
40 40
             $completeFieldsArray['type'] = $this->getFieldTypeFromDbColumnType($completeFieldsArray['name']);
41 41
         }
42 42
 
43 43
         // if a tab was mentioned, we should enable it
44 44
         if (isset($completeFieldsArray['tab'])) {
45
-            if (! $this->tabsEnabled()) {
45
+            if (!$this->tabsEnabled()) {
46 46
                 $this->enableTabs();
47 47
             }
48 48
         }
49 49
 
50
-        $this->transformFields($form, function ($fields) use ($completeFieldsArray) {
50
+        $this->transformFields($form, function($fields) use ($completeFieldsArray) {
51 51
             $fields[$completeFieldsArray['name']] = $completeFieldsArray;
52 52
 
53 53
             return $fields;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         if (count($fields)) {
69 69
             foreach ($fields as $field) {
70
-                if (is_string($tab) && ! isset($field['tab'])) {
70
+                if (is_string($tab) && !isset($field['tab'])) {
71 71
                     $field['tab'] = $tab;
72 72
                 }
73 73
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function afterField($targetFieldName, $form = 'both')
86 86
     {
87
-        $this->transformFields($form, function ($fields) use ($targetFieldName) {
87
+        $this->transformFields($form, function($fields) use ($targetFieldName) {
88 88
             return $this->moveField($fields, $targetFieldName, false);
89 89
         });
90 90
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function beforeField($targetFieldName, $form = 'both')
99 99
     {
100
-        $this->transformFields($form, function ($fields) use ($targetFieldName) {
100
+        $this->transformFields($form, function($fields) use ($targetFieldName) {
101 101
             return $this->moveField($fields, $targetFieldName, true);
102 102
         });
103 103
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function removeField($name, $form = 'both')
141 141
     {
142
-        $this->transformFields($form, function ($fields) use ($name) {
142
+        $this->transformFields($form, function($fields) use ($name) {
143 143
             array_forget($fields, $name);
144 144
 
145 145
             return $fields;
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function removeFields($array_of_names, $form = 'both')
156 156
     {
157
-        if (! empty($array_of_names)) {
157
+        if (!empty($array_of_names)) {
158 158
             foreach ($array_of_names as $name) {
159 159
                 $this->removeField($name, $form);
160 160
             }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     public function removeAllFields($form = 'both')
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'], $form);
175 175
             }
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                 $jsonCastables = ['array', 'object', 'json'];
260 260
                 $fieldCasting = $casted_attributes[$field['name']];
261 261
 
262
-                if (in_array($fieldCasting, $jsonCastables) && isset($data[$field['name']]) && ! empty($data[$field['name']]) && ! is_array($data[$field['name']])) {
262
+                if (in_array($fieldCasting, $jsonCastables) && isset($data[$field['name']]) && !empty($data[$field['name']]) && !is_array($data[$field['name']])) {
263 263
                     try {
264 264
                         $data[$field['name']] = json_decode($data[$field['name']]);
265 265
                     } catch (\Exception $e) {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      */
291 291
     public function orderFields($order, $form = 'both')
292 292
     {
293
-        $this->transformFields($form, function ($fields) use ($order) {
293
+        $this->transformFields($form, function($fields) use ($order) {
294 294
             return $this->applyOrderToFields($fields, $order);
295 295
         });
296 296
     }
Please login to merge, or discard this patch.