@@ -155,7 +155,7 @@ |
||
| 155 | 155 | |
| 156 | 156 | if ($this->offset >= 0 && $this->limit >= 0) { |
| 157 | 157 | $query->offset($this->offset) |
| 158 | - ->limit($this->limit); |
|
| 158 | + ->limit($this->limit); |
|
| 159 | 159 | |
| 160 | 160 | $this->offset = -1; |
| 161 | 161 | $this->limit = 0; |
@@ -318,9 +318,9 @@ discard block |
||
| 318 | 318 | } |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | - /** |
|
| 322 | - * {@inheritedoc} |
|
| 323 | - */ |
|
| 321 | + /** |
|
| 322 | + * {@inheritedoc} |
|
| 323 | + */ |
|
| 324 | 324 | public function hasColumn(string $column): bool |
| 325 | 325 | { |
| 326 | 326 | return array_key_exists($column, $this->columns) |
@@ -353,9 +353,9 @@ discard block |
||
| 353 | 353 | $this->rawColumns[$name] = $value; |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | - /** |
|
| 357 | - * {@inheritedoc} |
|
| 358 | - */ |
|
| 356 | + /** |
|
| 357 | + * {@inheritedoc} |
|
| 358 | + */ |
|
| 359 | 359 | public function getRelated(string $name, callable $callback = null) |
| 360 | 360 | { |
| 361 | 361 | if (array_key_exists($name, $this->relations)) { |
@@ -98,12 +98,12 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * |
|
| 102 | - * @param DataMapper<TEntity> $mapper |
|
| 103 | - * @param TEntity $entity |
|
| 104 | - * |
|
| 105 | - * @return bool |
|
| 106 | - */ |
|
| 101 | + * |
|
| 102 | + * @param DataMapper<TEntity> $mapper |
|
| 103 | + * @param TEntity $entity |
|
| 104 | + * |
|
| 105 | + * @return bool |
|
| 106 | + */ |
|
| 107 | 107 | public function link(DataMapper $mapper, Entity $entity): bool |
| 108 | 108 | { |
| 109 | 109 | $manager = $mapper->getEntityManager(); |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | } |
| 385 | 385 | }); |
| 386 | 386 | |
| 387 | - $foreignKeys = $this->foreignKey->getValue($mapper->getRawColumns(), true); |
|
| 387 | + $foreignKeys = $this->foreignKey->getValue($mapper->getRawColumns(), true); |
|
| 388 | 388 | if (is_array($foreignKeys)) { |
| 389 | 389 | foreach ($foreignKeys as $fkColumn => $value) { |
| 390 | 390 | $select->where($junctionTable . '.' . $fkColumn)->is($value); |
@@ -199,9 +199,9 @@ |
||
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | /** |
| 202 | - * Map the entity information |
|
| 203 | - * @param EntityMapperInterface<TEntity> $mapper |
|
| 204 | - */ |
|
| 202 | + * Map the entity information |
|
| 203 | + * @param EntityMapperInterface<TEntity> $mapper |
|
| 204 | + */ |
|
| 205 | 205 | abstract public static function mapEntity(EntityMapperInterface $mapper): void; |
| 206 | 206 | |
| 207 | 207 | /** |
@@ -148,8 +148,8 @@ discard block |
||
| 148 | 148 | public function get(array $columns = [], bool $primaryColumn = true): ?Entity |
| 149 | 149 | { |
| 150 | 150 | $result = $this->query($columns, $primaryColumn) |
| 151 | - ->fetchAssoc() |
|
| 152 | - ->get(); |
|
| 151 | + ->fetchAssoc() |
|
| 152 | + ->get(); |
|
| 153 | 153 | |
| 154 | 154 | if ($result === false) { |
| 155 | 155 | return null; |
@@ -298,11 +298,11 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * Find entities record using primary key values |
|
| 302 | - * @param mixed ...$ids |
|
| 303 | - * |
|
| 304 | - * @return TEntity[] |
|
| 305 | - */ |
|
| 301 | + * Find entities record using primary key values |
|
| 302 | + * @param mixed ...$ids |
|
| 303 | + * |
|
| 304 | + * @return TEntity[] |
|
| 305 | + */ |
|
| 306 | 306 | public function findAll(...$ids): array |
| 307 | 307 | { |
| 308 | 308 | if (is_array($ids[0])) { |
@@ -535,6 +535,6 @@ discard block |
||
| 535 | 535 | protected function transaction(Closure $callback) |
| 536 | 536 | { |
| 537 | 537 | return $this->manager->getConnection() |
| 538 | - ->transaction($callback); |
|
| 538 | + ->transaction($callback); |
|
| 539 | 539 | } |
| 540 | 540 | } |
@@ -228,10 +228,10 @@ discard block |
||
| 228 | 228 | return $this; |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | - /** |
|
| 232 | - * {@inheritedoc} |
|
| 233 | - * @return $this<TEntity> |
|
| 234 | - */ |
|
| 231 | + /** |
|
| 232 | + * {@inheritedoc} |
|
| 233 | + * @return $this<TEntity> |
|
| 234 | + */ |
|
| 235 | 235 | public function sequence(string $sequence): self |
| 236 | 236 | { |
| 237 | 237 | $this->sequence = $sequence; |
@@ -261,10 +261,10 @@ discard block |
||
| 261 | 261 | return $this; |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - /** |
|
| 265 | - * {@inheritedoc} |
|
| 266 | - * @return $this<TEntity> |
|
| 267 | - */ |
|
| 264 | + /** |
|
| 265 | + * {@inheritedoc} |
|
| 266 | + * @return $this<TEntity> |
|
| 267 | + */ |
|
| 268 | 268 | public function guarded(array $columns): self |
| 269 | 269 | { |
| 270 | 270 | $this->guarded = $columns; |