@@ -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)); |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | |
| 32 | 32 | /** @var int[] */ |
| 33 | 33 | protected static array $types = [IEntryType::TYPE_BOOLEAN, |
| 34 | - IEntryType::TYPE_INTEGER, IEntryType::TYPE_FLOAT, |
|
| 35 | - IEntryType::TYPE_STRING, |
|
| 36 | - IEntryType::TYPE_SET, IEntryType::TYPE_ARRAY, IEntryType::TYPE_OBJECT]; |
|
| 34 | + IEntryType::TYPE_INTEGER, IEntryType::TYPE_FLOAT, |
|
| 35 | + IEntryType::TYPE_STRING, |
|
| 36 | + IEntryType::TYPE_SET, IEntryType::TYPE_ARRAY, IEntryType::TYPE_OBJECT]; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * Mapper constructor. |