@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | foreach ($relations as $localAlias => $remoteColumn) { |
| 112 | 112 | $this->readQueryBuilder->addColumn($record->getMapper()->getAlias(), $remoteColumn, $localAlias); |
| 113 | 113 | } |
| 114 | - $this->readQueryBuilder->setLimits(0,1); |
|
| 114 | + $this->readQueryBuilder->setLimits(0, 1); |
|
| 115 | 115 | |
| 116 | 116 | // query itself |
| 117 | 117 | $lines = $this->readDatabase->query( |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | // query itself |
| 175 | - $this->readQueryBuilder->setLimits(0,1); |
|
| 175 | + $this->readQueryBuilder->setLimits(0, 1); |
|
| 176 | 176 | $lines = $this->readDatabase->query( |
| 177 | 177 | strval($this->readDialect->select($this->readQueryBuilder)), |
| 178 | 178 | array_filter($this->readQueryBuilder->getParams(), [$this, 'filterNullValues']) |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | // paging |
| 126 | 126 | return $limited |
| 127 | 127 | ? array_slice($results, intval($this->queryBuilder->getOffset()), $this->queryBuilder->getLimit()) |
| 128 | - : $results ; |
|
| 128 | + : $results; |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
@@ -305,6 +305,6 @@ discard block |
||
| 305 | 305 | $a = $resultA->offsetGet($this->sortingOrder->getColumnName()); |
| 306 | 306 | $b = $resultB->offsetGet($this->sortingOrder->getColumnName()); |
| 307 | 307 | |
| 308 | - return (IQueryBuilder::ORDER_ASC == $sortingDirection) ? $a <=> $b : $b <=> $a ; |
|
| 308 | + return (IQueryBuilder::ORDER_ASC == $sortingDirection) ? $a <=> $b : $b <=> $a; |
|
| 309 | 309 | } |
| 310 | 310 | } |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | { |
| 28 | 28 | // ... |
| 29 | 29 | } |
| 30 | - |
|
| 31 | 30 | */ |
| 32 | 31 | interface ICanFill |
| 33 | 32 | { |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | } |
| 49 | 49 | foreach ($this->recordsInJoin as $record) { |
| 50 | 50 | $foreignKeys = $record->getRecord()->getMapper()->getForeignKeys(); |
| 51 | - $fk = empty($knownAs) ? $storeKey : $knownAs ; |
|
| 51 | + $fk = empty($knownAs) ? $storeKey : $knownAs; |
|
| 52 | 52 | if (isset($foreignKeys[$fk])) { |
| 53 | 53 | $recordClassName = $foreignKeys[$fk]->getRemoteRecord(); |
| 54 | 54 | try { |
@@ -17,19 +17,19 @@ |
||
| 17 | 17 | public const ORDER_ASC = 'ASC'; |
| 18 | 18 | public const ORDER_DESC = 'DESC'; |
| 19 | 19 | |
| 20 | - public const OPERATION_NULL = 'nul'; // is null |
|
| 21 | - public const OPERATION_NNULL = 'nnul'; // is not null |
|
| 22 | - public const OPERATION_EQ = 'eq'; // = |
|
| 23 | - public const OPERATION_NEQ = 'neq'; // != |
|
| 24 | - public const OPERATION_GT = 'gt'; // > |
|
| 25 | - public const OPERATION_GTE = 'gte'; // >= |
|
| 26 | - public const OPERATION_LT = 'lt'; // < |
|
| 27 | - public const OPERATION_LTE = 'lte'; // <= |
|
| 28 | - public const OPERATION_LIKE = 'like'; // like... |
|
| 20 | + public const OPERATION_NULL = 'nul'; // is null |
|
| 21 | + public const OPERATION_NNULL = 'nnul'; // is not null |
|
| 22 | + public const OPERATION_EQ = 'eq'; // = |
|
| 23 | + public const OPERATION_NEQ = 'neq'; // != |
|
| 24 | + public const OPERATION_GT = 'gt'; // > |
|
| 25 | + public const OPERATION_GTE = 'gte'; // >= |
|
| 26 | + public const OPERATION_LT = 'lt'; // < |
|
| 27 | + public const OPERATION_LTE = 'lte'; // <= |
|
| 28 | + public const OPERATION_LIKE = 'like'; // like... |
|
| 29 | 29 | public const OPERATION_NLIKE = 'nlike'; // not like |
| 30 | - public const OPERATION_REXP = 'rexp'; // regex |
|
| 31 | - public const OPERATION_IN = 'in'; // in () |
|
| 32 | - public const OPERATION_NIN = 'nin'; // not in () |
|
| 30 | + public const OPERATION_REXP = 'rexp'; // regex |
|
| 31 | + public const OPERATION_IN = 'in'; // in () |
|
| 32 | + public const OPERATION_NIN = 'nin'; // not in () |
|
| 33 | 33 | |
| 34 | 34 | public const AGGREGATE_AVG = 'AVG'; |
| 35 | 35 | public const AGGREGATE_COUNT = 'COUNT'; |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | */ |
| 410 | 410 | protected function correctTable(string $table): string |
| 411 | 411 | { |
| 412 | - return empty($table) ? $this->getBasicRecord()->getMapper()->getAlias() : $table ; |
|
| 412 | + return empty($table) ? $this->getBasicRecord()->getMapper()->getAlias() : $table; |
|
| 413 | 413 | } |
| 414 | 414 | |
| 415 | 415 | /** |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | */ |
| 421 | 421 | protected function correctColumn(string $table, string $column) |
| 422 | 422 | { |
| 423 | - $record = !empty($table) ? $this->recordLookup($table)->getRecord() : $this->getBasicRecord() ; |
|
| 423 | + $record = !empty($table) ? $this->recordLookup($table)->getRecord() : $this->getBasicRecord(); |
|
| 424 | 424 | if (empty($record)) { |
| 425 | 425 | // @codeCoverageIgnoreStart |
| 426 | 426 | throw new MapperException(sprintf('Unknown relation table *%s*', $table)); |