@@ -78,7 +78,7 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | public static function createInnerResultIterator(string $magicSql, array $parameters, ?int $limit, ?int $offset, array $columnDescriptors, ObjectStorageInterface $objectStorage, ?string $className, TDBMService $tdbmService, MagicQuery $magicQuery, LoggerInterface $logger): self |
| 80 | 80 | { |
| 81 | - $iterator = new static(); |
|
| 81 | + $iterator = new static(); |
|
| 82 | 82 | $iterator->magicSql = $magicSql; |
| 83 | 83 | $iterator->objectStorage = $objectStorage; |
| 84 | 84 | $iterator->className = $className; |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public static function getValidVariableName(string $variableName): string |
| 10 | 10 | { |
| 11 | - $valid = preg_replace_callback('/^(\d+)/', static function (array $match) { |
|
| 11 | + $valid = preg_replace_callback('/^(\d+)/', static function(array $match) { |
|
| 12 | 12 | $f = new \NumberFormatter('en', \NumberFormatter::SPELLOUT); |
| 13 | 13 | $number = $f->format((int) $match[0]); |
| 14 | 14 | return preg_replace('/[^a-z]+/i', '_', $number); |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | $alias = AbstractQueryFactory::getColumnAlias($tableName, $columnName); |
| 216 | 216 | $astColumn = [ |
| 217 | 217 | 'expr_type' => 'colref', |
| 218 | - 'base_expr' => $connection->quoteIdentifier($tableName) . '.' . $connection->quoteIdentifier($columnName), |
|
| 218 | + 'base_expr' => $connection->quoteIdentifier($tableName).'.'.$connection->quoteIdentifier($columnName), |
|
| 219 | 219 | 'no_quotes' => [ |
| 220 | 220 | 'delim' => '.', |
| 221 | 221 | 'parts' => [ |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | return $this->generateWrappedSqlCount($parsedSql); |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | - $countSubExpr = array_map(function (array $item) { |
|
| 306 | + $countSubExpr = array_map(function(array $item) { |
|
| 307 | 307 | unset($item['alias']); |
| 308 | 308 | return $item; |
| 309 | 309 | }, $parsedSql['SELECT']); |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | $item['delim'] = ','; |
| 381 | 381 | $innerColumns[] = $item; |
| 382 | 382 | } |
| 383 | - $innerColumns[count($innerColumns)-1]['delim'] = false; |
|
| 383 | + $innerColumns[count($innerColumns) - 1]['delim'] = false; |
|
| 384 | 384 | $parsedSql['SELECT'] = $innerColumns; |
| 385 | 385 | |
| 386 | 386 | $parsedSql = [ |