Passed
Push — master ( 8d0b41...f08b4c )
by Nicolaas
09:16
created
src/Helpers/FindEditableObjects.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -246,14 +246,14 @@  discard block
 block discarded – undo
246 246
 
247 247
             if (!isset($this->relationTypesCovered[$relType])) {
248 248
                 $rels = null;
249
-                if($dataObject->hasMethod($relationName)) {
249
+                if ($dataObject->hasMethod($relationName)) {
250 250
                     $rels = $dataObject->{$relationName}();
251 251
                 } else {
252 252
                     user_error('Relation ' . print_r($relationName, 1) . ' does not exist on ' . $dataObject->ClassName . ' Relations are: ' . print_r($this->getRelations($dataObject), 1), E_USER_NOTICE);
253 253
                 }
254 254
                 if ($rels) {
255 255
                     if ($rels instanceof DataList) {
256
-                        if(!$rels instanceof UnsavedRelationList) {
256
+                        if (!$rels instanceof UnsavedRelationList) {
257 257
                             $rels = $rels->first();
258 258
                         }
259 259
                     }
@@ -308,8 +308,8 @@  discard block
 block discarded – undo
308 308
      */
309 309
     protected function classCanBeIncluded(string $dataObjectClassName): bool
310 310
     {
311
-        if(count($this->excludedClasses)) {
312
-            if(!class_exists($dataObjectClassName)) {
311
+        if (count($this->excludedClasses)) {
312
+            if (!class_exists($dataObjectClassName)) {
313 313
                 return false;
314 314
             }
315 315
             return !in_array($dataObjectClassName, $this->excludedClasses, true);
Please login to merge, or discard this patch.