@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | private static function fullQualifiedName($ns, $class) |
| 52 | 52 | { |
| 53 | - if (! class_exists($class)) { |
|
| 53 | + if (!class_exists($class)) { |
|
| 54 | 54 | $class = sprintf("\\%s\\%s", $ns, $class); |
| 55 | 55 | } |
| 56 | 56 | return $class; |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | private static function boolval($value) |
| 40 | 40 | { |
| 41 | - if (! function_exists('boolval')) { |
|
| 42 | - return (bool) $value; |
|
| 41 | + if (!function_exists('boolval')) { |
|
| 42 | + return (bool)$value; |
|
| 43 | 43 | } |
| 44 | 44 | return boolval($value); |
| 45 | 45 | } |
@@ -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 | |
@@ -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 | } |