Completed
Push — master ( 8a0039...4684b6 )
by Maik
03:19
created
src/Orm/OrmMapping.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,8 +201,8 @@
 block discarded – undo
201 201
      * @param object $result            
202 202
      * @param \ReflectionClass $resultClass            
203 203
      * @param string $propertyName            
204
-     * @param string $type            
205 204
      * @param mixed $value            
205
+     * @param \ReflectionProperty $resultClassProperty
206 206
      *
207 207
      * @return boolean Whether to continue assigning
208 208
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
             $rfToClass = new \ReflectionClass($toClass);
47 47
             
48 48
             foreach (get_object_vars($from) as $property => $value) {
49
-                if (! strpos($property, '.')) {
49
+                if (!strpos($property, '.')) {
50 50
                     continue;
51 51
                 }
52 52
                 
53 53
                 list ($toProperty, $column) = explode('.', $property);
54 54
                 
55
-                if (! $rfToClass->hasProperty($toProperty)) {
55
+                if (!$rfToClass->hasProperty($toProperty)) {
56 56
                     continue;
57 57
                 }
58 58
                 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             return true;
217 217
         }
218 218
         
219
-        if (! self::isPrimitive($type) && class_exists($type) && ! $value instanceof $type) {
219
+        if (!self::isPrimitive($type) && class_exists($type) && !$value instanceof $type) {
220 220
             return false;
221 221
         }
222 222
         
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             $rfMethod->invoke($result, self::convertType($type, $value));
251 251
         } else {
252 252
             foreach ($resultClass->getProperties() as $resultClassProperty) {
253
-                if (! self::assignAnnotatedPropertyValue($result, $resultClassProperty, $resultClass, $propertyName, $value)) {
253
+                if (!self::assignAnnotatedPropertyValue($result, $resultClassProperty, $resultClass, $propertyName, $value)) {
254 254
                     break;
255 255
                 }
256 256
             }
Please login to merge, or discard this patch.
src/Orm/Orm.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $pkColumn => $id
86 86
         ));
87 87
         
88
-        if (! $result || is_array($result)) {
88
+        if (!$result || is_array($result)) {
89 89
             throw new OrmException("More than one entity found (expected exactly one)");
90 90
         }
91 91
         
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 $results[] = self::map($result, $class, $instance);
151 151
             }
152 152
             
153
-            if (! $asList && count($results) == 1) {
153
+            if (!$asList && count($results) == 1) {
154 154
                 $results = $results[0];
155 155
             }
156 156
             
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             
232 232
             $instance->getDbType()->lock($tableName, IType::LOCK_TYPE_WRITE, $instance);
233 233
             $statement->execute();
234
-            if (! $primaryKeyValue) {
234
+            if (!$primaryKeyValue) {
235 235
                 $pk = $connection->lastInsertId($instance->getDbType()
236 236
                     ->getSequenceNameForColumn($tableName, $primaryKeyCol, $instance));
237 237
             }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             
240 240
             unset($statement);
241 241
             
242
-            if (! $primaryKeyValue) {
242
+            if (!$primaryKeyValue) {
243 243
                 $this->setPrimaryKey($class, $entity, $pk);
244 244
             }
245 245
             
Please login to merge, or discard this patch.