@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | foreach ($relations as $localAlias => $remoteColumn) { |
| 159 | 159 | $this->queryBuilder->addColumn($record->getMapper()->getAlias(), $remoteColumn, $localAlias); |
| 160 | 160 | } |
| 161 | - $this->queryBuilder->setLimits(0,1); |
|
| 161 | + $this->queryBuilder->setLimits(0, 1); |
|
| 162 | 162 | |
| 163 | 163 | // query itself |
| 164 | 164 | $lines = $this->database->query(strval($this->dialect->select($this->queryBuilder)), $this->queryBuilder->getParams()); |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | // query itself |
| 217 | - $this->queryBuilder->setLimits(0,1); |
|
| 217 | + $this->queryBuilder->setLimits(0, 1); |
|
| 218 | 218 | $lines = $this->database->query(strval($this->dialect->select($this->queryBuilder)), $this->queryBuilder->getParams()); |
| 219 | 219 | if (empty($lines)) { |
| 220 | 220 | return false; |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | foreach ($relations as $localAlias => $remoteColumn) { |
| 199 | 199 | $this->readQueryBuilder->addColumn($record->getMapper()->getAlias(), $remoteColumn, $localAlias); |
| 200 | 200 | } |
| 201 | - $this->readQueryBuilder->setLimits(0,1); |
|
| 201 | + $this->readQueryBuilder->setLimits(0, 1); |
|
| 202 | 202 | |
| 203 | 203 | // query itself |
| 204 | 204 | $lines = $this->readDatabase->query(strval($this->readDialect->select($this->readQueryBuilder)), $this->readQueryBuilder->getParams()); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | // query itself |
| 257 | - $this->readQueryBuilder->setLimits(0,1); |
|
| 257 | + $this->readQueryBuilder->setLimits(0, 1); |
|
| 258 | 258 | $lines = $this->readDatabase->query(strval($this->readDialect->select($this->readQueryBuilder)), $this->readQueryBuilder->getParams()); |
| 259 | 259 | if (empty($lines)) { |
| 260 | 260 | return false; |
@@ -29,9 +29,9 @@ |
||
| 29 | 29 | |
| 30 | 30 | /** @var int[] */ |
| 31 | 31 | protected static $types = [IEntryType::TYPE_BOOLEAN, |
| 32 | - IEntryType::TYPE_INTEGER, IEntryType::TYPE_FLOAT, |
|
| 33 | - IEntryType::TYPE_STRING, |
|
| 34 | - IEntryType::TYPE_SET, IEntryType::TYPE_ARRAY, IEntryType::TYPE_OBJECT]; |
|
| 32 | + IEntryType::TYPE_INTEGER, IEntryType::TYPE_FLOAT, |
|
| 33 | + IEntryType::TYPE_STRING, |
|
| 34 | + IEntryType::TYPE_SET, IEntryType::TYPE_ARRAY, IEntryType::TYPE_OBJECT]; |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Mapper constructor. |