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 (#282)
by Cristian
02:30
created
src/PanelTraits/Fields.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
         }
25 25
 
26 26
         // if the label is missing, we should set it
27
-        if (! isset($complete_field_array['label'])) {
27
+        if (!isset($complete_field_array['label'])) {
28 28
             $complete_field_array['label'] = ucfirst($complete_field_array['name']);
29 29
         }
30 30
 
31 31
         // if the field type is missing, we should set it
32
-        if (! isset($complete_field_array['type'])) {
32
+        if (!isset($complete_field_array['type'])) {
33 33
             $complete_field_array['type'] = $this->getFieldTypeFromDbColumnType($complete_field_array['name']);
34 34
         }
35 35
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function removeFields($array_of_names, $form = 'both')
141 141
     {
142
-        if (! empty($array_of_names)) {
142
+        if (!empty($array_of_names)) {
143 143
             foreach ($array_of_names as $name) {
144 144
                 $this->removeField($name, $form);
145 145
             }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 $jsonCastables = ['array', 'object', 'json'];
201 201
                 $fieldCasting = $this->model->getCasts()[$field['name']];
202 202
 
203
-                if (in_array($fieldCasting, $jsonCastables) && isset($data[$field['name']]) && ! empty($data[$field['name']]) && ! is_array($data[$field['name']])) {
203
+                if (in_array($fieldCasting, $jsonCastables) && isset($data[$field['name']]) && !empty($data[$field['name']]) && !is_array($data[$field['name']])) {
204 204
                     try {
205 205
                         $data[$field['name']] = json_decode($data[$field['name']]);
206 206
                     } catch (Exception $e) {
Please login to merge, or discard this patch.