@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | #[ReadOperation] |
308 | 308 | public function loadRelations($entity, $relations) |
309 | 309 | { |
310 | - foreach (Relation::sanitizeRelations((array)$relations) as $relationName => $meta) { |
|
310 | + foreach (Relation::sanitizeRelations((array) $relations) as $relationName => $meta) { |
|
311 | 311 | $this->relation($relationName)->loadIfNotLoaded( |
312 | 312 | new SingleEntityIndexer($this->mapper, $entity), |
313 | 313 | $meta['relations'], |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | #[ReadOperation] |
331 | 331 | public function reloadRelations($entity, $relations) |
332 | 332 | { |
333 | - foreach (Relation::sanitizeRelations((array)$relations) as $relationName => $meta) { |
|
333 | + foreach (Relation::sanitizeRelations((array) $relations) as $relationName => $meta) { |
|
334 | 334 | $this->relation($relationName)->load( |
335 | 335 | new SingleEntityIndexer($this->mapper, $entity), |
336 | 336 | $meta['relations'], |
@@ -376,12 +376,12 @@ discard block |
||
376 | 376 | #[WriteOperation] |
377 | 377 | public function saveAll($entity, $relations) |
378 | 378 | { |
379 | - $relations = Relation::sanitizeRelations((array)$relations); |
|
379 | + $relations = Relation::sanitizeRelations((array) $relations); |
|
380 | 380 | |
381 | 381 | return $this->transaction(function() use($entity, $relations) { |
382 | 382 | $nb = $this->save($entity); |
383 | 383 | |
384 | - foreach ((array)$relations as $relationName => $info) { |
|
384 | + foreach ((array) $relations as $relationName => $info) { |
|
385 | 385 | $nb += $this->relation($relationName)->saveAll($entity, $info['relations']); |
386 | 386 | } |
387 | 387 | |
@@ -401,12 +401,12 @@ discard block |
||
401 | 401 | #[WriteOperation] |
402 | 402 | public function deleteAll($entity, $relations) |
403 | 403 | { |
404 | - $relations = Relation::sanitizeRelations((array)$relations); |
|
404 | + $relations = Relation::sanitizeRelations((array) $relations); |
|
405 | 405 | |
406 | 406 | return $this->transaction(function() use($entity, $relations) { |
407 | 407 | $nb = $this->delete($entity); |
408 | 408 | |
409 | - foreach ((array)$relations as $relationName => $info) { |
|
409 | + foreach ((array) $relations as $relationName => $info) { |
|
410 | 410 | $nb += $this->relation($relationName)->deleteAll($entity, $info['relations']); |
411 | 411 | } |
412 | 412 |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | foreach ($query->statements['tables'] as $table) { |
187 | 187 | return $query->state()->compiled = 'UPDATE ' |
188 | 188 | . $this->quoteIdentifier($query, $table['table']) |
189 | - . ' SET ' . implode(', ', $values) |
|
189 | + . ' SET '.implode(', ', $values) |
|
190 | 190 | . $this->compileWhere($query) |
191 | 191 | ; |
192 | 192 | } |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | $from['sql'] = $this->quoteIdentifier($query, $databasePrefix.$from['table']); |
525 | 525 | $compiled[$from['table']] = $from; |
526 | 526 | } else { |
527 | - $from['sql'] = $this->quoteIdentifier($query, $databasePrefix.$from['table']) . ' ' . $this->quoteIdentifier($query, $from['alias']); |
|
527 | + $from['sql'] = $this->quoteIdentifier($query, $databasePrefix.$from['table']).' '.$this->quoteIdentifier($query, $from['alias']); |
|
528 | 528 | $compiled[$from['alias']] = $from; |
529 | 529 | } |
530 | 530 | } |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | if (is_array($value)) { |
698 | 698 | return $this->compileIntoExpression($query, $value, $column, 'REGEXP', $converted); |
699 | 699 | } |
700 | - return $this->quoteIdentifier($query, $column).' REGEXP '.$this->compileExpressionValue($query, (string)$value, $converted); |
|
700 | + return $this->quoteIdentifier($query, $column).' REGEXP '.$this->compileExpressionValue($query, (string) $value, $converted); |
|
701 | 701 | |
702 | 702 | // LIKE |
703 | 703 | case ':like': |
@@ -770,7 +770,7 @@ discard block |
||
770 | 770 | |
771 | 771 | // Unsupported operator |
772 | 772 | default: |
773 | - throw new UnexpectedValueException("Unsupported operator '" . $operator . "' in WHERE clause"); |
|
773 | + throw new UnexpectedValueException("Unsupported operator '".$operator."' in WHERE clause"); |
|
774 | 774 | } |
775 | 775 | } |
776 | 776 | |
@@ -858,7 +858,7 @@ discard block |
||
858 | 858 | $sql = '('.$this->compileSelect($query).')'; |
859 | 859 | |
860 | 860 | if ($alias) { |
861 | - $sql = $sql . ' as ' . $this->quoteIdentifier($clause, $alias); |
|
861 | + $sql = $sql.' as '.$this->quoteIdentifier($clause, $alias); |
|
862 | 862 | } |
863 | 863 | |
864 | 864 | $this->addQueryBindings($clause, $query); |
@@ -1016,12 +1016,12 @@ discard block |
||
1016 | 1016 | if ($lock !== null && !$query->statements['aggregate']) { |
1017 | 1017 | // Lock for update |
1018 | 1018 | if ($lock === LockMode::PESSIMISTIC_WRITE) { |
1019 | - return ' ' . $this->platform()->grammar()->getWriteLockSQL(); |
|
1019 | + return ' '.$this->platform()->grammar()->getWriteLockSQL(); |
|
1020 | 1020 | } |
1021 | 1021 | |
1022 | 1022 | // Shared Lock: other process can read the row but not update it. |
1023 | 1023 | if ($lock === LockMode::PESSIMISTIC_READ) { |
1024 | - return ' ' . $this->platform()->grammar()->getReadLockSQL(); |
|
1024 | + return ' '.$this->platform()->grammar()->getReadLockSQL(); |
|
1025 | 1025 | } |
1026 | 1026 | } |
1027 | 1027 |
@@ -114,7 +114,7 @@ |
||
114 | 114 | private function getConnectionParameters(string $connectionName): array |
115 | 115 | { |
116 | 116 | if (!isset($this->parametersMap[$connectionName])) { |
117 | - throw new DBALException('Connection name "' . $connectionName . '" is not set'); |
|
117 | + throw new DBALException('Connection name "'.$connectionName.'" is not set'); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | $parameters = $this->parametersMap[$connectionName]; |