Passed
Push — master ( e9c8fb...b2b64d )
by Nicolaas
08:35
created
Category
src/Extensions/SiteTreeContentWriter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
         $string = '';
82 82
         foreach (['db', 'has_one', 'belongs', 'has_many', 'many_many', 'belongs_many_many'] as $relType) {
83 83
             $fields = Config::inst()->get($object->ClassName, $relType);
84
-            if (! empty($fields)) {
84
+            if (!empty($fields)) {
85 85
                 foreach ($fields as $name => $type) {
86
-                    if (! in_array($type, $badTypes, true) && ! in_array($name, $unsetFields, true)) {
86
+                    if (!in_array($type, $badTypes, true) && !in_array($name, $unsetFields, true)) {
87 87
                         if (0 === stripos($type, 'Enum')) {
88 88
                             continue;
89 89
                         }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             $extraArray = Config::inst()->get(Page::class, 'unsearchable_fields_extra');
142 142
         }
143 143
 
144
-        if (! empty($extraArray) && is_array($extraArray)) {
144
+        if (!empty($extraArray) && is_array($extraArray)) {
145 145
             $array = array_merge($array, $extraArray);
146 146
         }
147 147
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             $extraArray = Config::inst()->get(Page::class, 'unsearchable_types_extra');
159 159
         }
160 160
 
161
-        if (! empty($extraArray) && is_array($extraArray)) {
161
+        if (!empty($extraArray) && is_array($extraArray)) {
162 162
             $array = array_merge($array, $extraArray);
163 163
         }
164 164
 
Please login to merge, or discard this patch.