Passed
Pull Request — master (#7506)
by
unknown
09:45
created
lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 $discrColumnName = $metaMappingDiscrColumnName;
87 87
             }
88 88
 
89
-            if (! isset($sqlResult[$discrColumnName])) {
89
+            if ( ! isset($sqlResult[$discrColumnName])) {
90 90
                 throw HydrationException::missingDiscriminatorColumn($entityName, $discrColumnName, key($this->rsm->aliasMap));
91 91
             }
92 92
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
             $discrMap = $this->class->discriminatorMap;
98 98
 
99
-            if (! isset($discrMap[$sqlResult[$discrColumnName]])) {
99
+            if ( ! isset($discrMap[$sqlResult[$discrColumnName]])) {
100 100
                 throw HydrationException::invalidDiscriminatorValue($sqlResult[$discrColumnName], array_keys($discrMap));
101 101
             }
102 102
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
             $cacheKeyInfo = $this->hydrateColumnInfo($column);
116 116
 
117
-            if (! $cacheKeyInfo) {
117
+            if ( ! $cacheKeyInfo) {
118 118
                 continue;
119 119
             }
120 120
 
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
             $fieldName = $cacheKeyInfo['fieldName'];
131 131
 
132 132
             // Prevent overwrite in case of inherit classes using same property name (See AbstractHydrator)
133
-            if (! isset($data[$fieldName]) || ! $valueIsNull) {
133
+            if ( ! isset($data[$fieldName]) || ! $valueIsNull) {
134 134
                 // If we have inheritance in resultset, make sure the field belongs to the correct class
135
-                if (isset($cacheKeyInfo['discriminatorValues']) && !in_array($discrColumnValue, $cacheKeyInfo['discriminatorValues'])) {
135
+                if (isset($cacheKeyInfo['discriminatorValues']) && ! in_array($discrColumnValue, $cacheKeyInfo['discriminatorValues'])) {
136 136
                     continue;
137 137
                 }
138 138
 
Please login to merge, or discard this patch.