@@ -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; |
@@ -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(mixed ...$ids): array |
307 | 307 | { |
308 | 308 | if (is_array($ids[0])) { |
@@ -543,6 +543,6 @@ discard block |
||
543 | 543 | protected function transaction(Closure $callback): mixed |
544 | 544 | { |
545 | 545 | return $this->manager->getConnection() |
546 | - ->transaction($callback); |
|
546 | + ->transaction($callback); |
|
547 | 547 | } |
548 | 548 | } |
@@ -317,9 +317,9 @@ discard block |
||
317 | 317 | } |
318 | 318 | } |
319 | 319 | |
320 | - /** |
|
321 | - * {@inheritedoc} |
|
322 | - */ |
|
320 | + /** |
|
321 | + * {@inheritedoc} |
|
322 | + */ |
|
323 | 323 | public function hasColumn(string $column): bool |
324 | 324 | { |
325 | 325 | return array_key_exists($column, $this->columns) |
@@ -352,9 +352,9 @@ discard block |
||
352 | 352 | $this->rawColumns[$name] = $value; |
353 | 353 | } |
354 | 354 | |
355 | - /** |
|
356 | - * {@inheritedoc} |
|
357 | - */ |
|
355 | + /** |
|
356 | + * {@inheritedoc} |
|
357 | + */ |
|
358 | 358 | public function getRelated(string $name, callable $callback = null): mixed |
359 | 359 | { |
360 | 360 | if (array_key_exists($name, $this->relations)) { |
@@ -221,10 +221,10 @@ discard block |
||
221 | 221 | return $this; |
222 | 222 | } |
223 | 223 | |
224 | - /** |
|
225 | - * {@inheritedoc} |
|
226 | - * @return EntityMapper<TEntity> |
|
227 | - */ |
|
224 | + /** |
|
225 | + * {@inheritedoc} |
|
226 | + * @return EntityMapper<TEntity> |
|
227 | + */ |
|
228 | 228 | public function sequence(string $sequence): self |
229 | 229 | { |
230 | 230 | $this->sequence = $sequence; |
@@ -254,10 +254,10 @@ discard block |
||
254 | 254 | return $this; |
255 | 255 | } |
256 | 256 | |
257 | - /** |
|
258 | - * {@inheritedoc} |
|
259 | - * @return EntityMapper<TEntity> |
|
260 | - */ |
|
257 | + /** |
|
258 | + * {@inheritedoc} |
|
259 | + * @return EntityMapper<TEntity> |
|
260 | + */ |
|
261 | 261 | public function guarded(array $columns): self |
262 | 262 | { |
263 | 263 | $this->guarded = $columns; |