@@ -246,14 +246,14 @@ discard block |
||
| 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 |
||
| 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); |