@@ -14,18 +14,18 @@ discard block |
||
14 | 14 | private function isOnly(ReflectionProperty $property, array $optionsToArray): bool |
15 | 15 | { |
16 | 16 | if (!isset($optionsToArray['only']) && !isset($optionsToArray['except'])) { |
17 | - return true; |
|
17 | + return TRUE; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | if (isset($optionsToArray['only'])) { |
21 | 21 | if (in_array($property->getName(), $optionsToArray['only'])) { |
22 | - return true; |
|
22 | + return TRUE; |
|
23 | 23 | } |
24 | 24 | } elseif (isset($optionsToArray['except']) && !in_array($property->getName(), $optionsToArray['except'])) { |
25 | - return true; |
|
25 | + return TRUE; |
|
26 | 26 | } |
27 | 27 | |
28 | - return false; |
|
28 | + return FALSE; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | private function getPropertiesFillable(): array |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | foreach ($propertiesFillable as $property) { |
57 | 57 | if ($this->isOnly($property, $options)) { |
58 | 58 | $key = $property->getName(); |
59 | - $metaDataKey = $classMetadata->hasField($key) ? $classMetadata->getFieldMapping($key) : null; |
|
59 | + $metaDataKey = $classMetadata->hasField($key) ? $classMetadata->getFieldMapping($key) : NULL; |
|
60 | 60 | |
61 | 61 | if (is_object($this->$key)) { |
62 | 62 | if ($this->$key instanceof DateTime) { |