@@ -201,8 +201,8 @@ |
||
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 | */ |
@@ -46,13 +46,13 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -85,7 +85,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |