Passed
Push — master ( 82d083...2c7632 )
by
unknown
09:02
created
src/Helpers/FindEditableObjects.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -173,13 +173,13 @@  discard block
 block discarded – undo
173 173
 
174 174
             return (string) $dataObject->{$validMethod};
175 175
         }
176
-        if (! in_array($dataObject->ClassName, $this->excludedClasses, true)) {
176
+        if (!in_array($dataObject->ClassName, $this->excludedClasses, true)) {
177 177
             if (empty($this->cache[$type][$dataObject->ClassName]) || true !== $this->cache[$type][$dataObject->ClassName]) {
178 178
                 foreach ($validMethods as $validMethod) {
179 179
                     $outcome = null;
180 180
                     if ($dataObject->hasMethod($validMethod)) {
181 181
                         $outcome = $dataObject->{$validMethod}();
182
-                    } elseif (! empty($dataObject->{$validMethod})) {
182
+                    } elseif (!empty($dataObject->{$validMethod})) {
183 183
                         $outcome = $dataObject->{$validMethod};
184 184
                     }
185 185
                     if ($outcome) {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             if (is_array($relType)) {
209 209
                 continue;
210 210
             }
211
-            if (! isset($this->relationTypesCovered[$relType])) {
211
+            if (!isset($this->relationTypesCovered[$relType])) {
212 212
                 $rels = $dataObject->{$relationName}();
213 213
                 if ($rels) {
214 214
                     if ($rels instanceof DataList) {
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
     protected function getRelations($dataObject): array
236 236
     {
237
-        if (! isset($this->cache['rels'][$dataObject->ClassName])) {
237
+        if (!isset($this->cache['rels'][$dataObject->ClassName])) {
238 238
             $this->cache['rels'][$dataObject->ClassName] = array_merge(
239 239
                 Config::inst()->get($dataObject->ClassName, 'belongs_to'),
240 240
                 Config::inst()->get($dataObject->ClassName, 'has_one'),
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
                 Config::inst()->get($dataObject->ClassName, 'many_many')
244 244
             );
245 245
             foreach ($this->cache['rels'][$dataObject->ClassName] as $key => $value) {
246
-                if (! in_array($value, $this->excludedClasses, true)) {
246
+                if (!in_array($value, $this->excludedClasses, true)) {
247 247
                     unset($this->cache['rels'][$dataObject->ClassName][$key]);
248 248
                 }
249 249
             }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
     protected function getValidMethods(string $type): array
256 256
     {
257
-        if (! isset($this->cache['validMethods'][$type])) {
257
+        if (!isset($this->cache['validMethods'][$type])) {
258 258
             $this->cache['validMethods'][$type] = $this->Config()->get($type);
259 259
         }
260 260
 
Please login to merge, or discard this patch.