@@ -285,8 +285,8 @@ |
||
| 285 | 285 | |
| 286 | 286 | protected function classCanBeIncluded(string $dataObjectClassName): bool |
| 287 | 287 | { |
| 288 | - if(count($this->excludedClasses) || count($this->includedClasses)) { |
|
| 289 | - if(!class_exists($dataObjectClassName)) { |
|
| 288 | + if (count($this->excludedClasses) || count($this->includedClasses)) { |
|
| 289 | + if (!class_exists($dataObjectClassName)) { |
|
| 290 | 290 | return false; |
| 291 | 291 | } |
| 292 | 292 | if (count($this->includedClasses)) { |
@@ -176,7 +176,7 @@ |
||
| 176 | 176 | protected function workOutBoolean(string $fieldName, ?array $data = null, ?bool $default = false) |
| 177 | 177 | { |
| 178 | 178 | $val = $data[$fieldName] ?? $default; |
| 179 | - if(!$val) { |
|
| 179 | + if (!$val) { |
|
| 180 | 180 | return false; |
| 181 | 181 | } |
| 182 | 182 | return $val === '1' || $val === 'true' || $val === 'on' || $val === 'yes' || $val === true; |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | if ($this->debug) { |
| 328 | 328 | DB::alteration_message(' ... Searching in ' . $className); |
| 329 | 329 | } |
| 330 | - if(count($this->includedClasses) && !in_array($className, $this->includedClasses, true)) { |
|
| 330 | + if (count($this->includedClasses) && !in_array($className, $this->includedClasses, true)) { |
|
| 331 | 331 | continue; |
| 332 | 332 | } |
| 333 | 333 | if (!in_array($className, $this->excludedClasses, true)) { |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | $fields = $this->getAllValidFields($className); |
| 336 | 336 | $filterAny = []; |
| 337 | 337 | foreach ($fields as $field) { |
| 338 | - if(count($this->includedFields) && !in_array($field, $this->includedFields, true)) { |
|
| 338 | + if (count($this->includedFields) && !in_array($field, $this->includedFields, true)) { |
|
| 339 | 339 | continue; |
| 340 | 340 | } |
| 341 | 341 | |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | $array = []; |
| 399 | 399 | $classNames = $this->getAllDataObjects(); |
| 400 | 400 | foreach ($classNames as $className) { |
| 401 | - if(count($this->includedClasses) && !in_array($className, $this->includedClasses, true)) { |
|
| 401 | + if (count($this->includedClasses) && !in_array($className, $this->includedClasses, true)) { |
|
| 402 | 402 | continue; |
| 403 | 403 | } |
| 404 | 404 | if (!in_array($className, $this->excludedClasses, true)) { |