@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * @param DataEntityInterface $entity |
| 53 | 53 | * @param array $data |
| 54 | 54 | */ |
| 55 | - protected function populateEntity(DataEntityInterface &$entity, array $data) |
|
| 55 | + protected function populateEntity(DataEntityInterface&$entity, array $data) |
|
| 56 | 56 | { |
| 57 | 57 | /* @var UserEntity $entity */ |
| 58 | 58 | $entity->setUserId($data[$this->idKey]) |
@@ -89,5 +89,5 @@ |
||
| 89 | 89 | * @param DataEntityInterface $entity |
| 90 | 90 | * @param array $data |
| 91 | 91 | */ |
| 92 | - abstract protected function populateEntity(DataEntityInterface &$entity, array $data); |
|
| 92 | + abstract protected function populateEntity(DataEntityInterface&$entity, array $data); |
|
| 93 | 93 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * @param DataEntityInterface $entity |
| 53 | 53 | * @param array $data |
| 54 | 54 | */ |
| 55 | - protected function populateEntity(DataEntityInterface &$entity, array $data) |
|
| 55 | + protected function populateEntity(DataEntityInterface&$entity, array $data) |
|
| 56 | 56 | { |
| 57 | 57 | /* @var UserEntity $entity */ |
| 58 | 58 | $entity->setUserId($data[$this->idKey]) |
@@ -242,7 +242,7 @@ |
||
| 242 | 242 | * @param PDOStatement $statement |
| 243 | 243 | * @param array $queryBind |
| 244 | 244 | */ |
| 245 | - private function bindValuesToStatement(PDOStatement &$statement, array $queryBind) |
|
| 245 | + private function bindValuesToStatement(PDOStatement&$statement, array $queryBind) |
|
| 246 | 246 | { |
| 247 | 247 | foreach ($queryBind as $index => $data) { |
| 248 | 248 | $paramType = PDO::PARAM_STR; |
@@ -185,11 +185,11 @@ discard block |
||
| 185 | 185 | switch ($this->getExpressionType($pattern, $dataKey)) { |
| 186 | 186 | case self::EXPRESSION_WILDCARD: |
| 187 | 187 | $subject = str_replace('%', '.*', $subject); |
| 188 | - $match = preg_match('/^' . $subject . '$/', $data[$dataKey]); |
|
| 188 | + $match = preg_match('/^'.$subject.'$/', $data[$dataKey]); |
|
| 189 | 189 | break; |
| 190 | 190 | |
| 191 | 191 | case self::EXPRESSION_IN_ARRAY: |
| 192 | - $match = in_array($data[$dataKey], (array)$subject); |
|
| 192 | + $match = in_array($data[$dataKey], (array) $subject); |
|
| 193 | 193 | break; |
| 194 | 194 | |
| 195 | 195 | case '<': |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | } |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - return (bool)$match; |
|
| 225 | + return (bool) $match; |
|
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | /** |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | if (is_numeric($maxKey)) { |
| 293 | 293 | $identifier = (int) $maxKey + 1; |
| 294 | 294 | } else { |
| 295 | - $identifier = $maxKey . '_1'; |
|
| 295 | + $identifier = $maxKey.'_1'; |
|
| 296 | 296 | } |
| 297 | 297 | } |
| 298 | 298 | |