Test Setup Failed
Push — master ( cec486...d03ce1 )
by Raí
09:22 queued 01:32
created
Bludata/Doctrine/ORM/Traits/ToArrayTrait.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,18 +14,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.