@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $pkColumn => $id |
| 87 | 87 | )); |
| 88 | 88 | |
| 89 | - if (! $result || is_array($result)) { |
|
| 89 | + if (!$result || is_array($result)) { |
|
| 90 | 90 | throw new OrmException("More than one entity found (expected exactly one)"); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | $placeHolder = str_replace('.', '_', $criterion); |
| 136 | 136 | $placeHolder = str_replace('OR ', 'OR_', $placeHolder); |
| 137 | 137 | $value = str_ireplace('LIKE ', '', $value); |
| 138 | - $statement->bindValue(":" . $placeHolder, $value); |
|
| 138 | + $statement->bindValue(":".$placeHolder, $value); |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | $statement->execute(); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $results[] = self::map($result, $class, $instance); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - if (! $asList && count($results) == 1) { |
|
| 154 | + if (!$asList && count($results) == 1) { |
|
| 155 | 155 | $results = $results[0]; |
| 156 | 156 | } |
| 157 | 157 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | $instance->getDbType()->lock($tableName, IType::LOCK_TYPE_WRITE, $instance); |
| 234 | 234 | $statement->execute(); |
| 235 | - if (! $primaryKeyValue) { |
|
| 235 | + if (!$primaryKeyValue) { |
|
| 236 | 236 | $pk = $connection->lastInsertId($instance->getDbType() |
| 237 | 237 | ->getSequenceNameForColumn($tableName, $primaryKeyCol, $instance)); |
| 238 | 238 | } |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | unset($statement); |
| 242 | 242 | |
| 243 | - if (! $primaryKeyValue) { |
|
| 243 | + if (!$primaryKeyValue) { |
|
| 244 | 244 | $this->setPrimaryKey($class, $entity, $pk); |
| 245 | 245 | } |
| 246 | 246 | |