@@ -260,11 +260,11 @@ discard block |
||
260 | 260 | } |
261 | 261 | }; |
262 | 262 | |
263 | - $linkKey = new ForeignKey(array_map(function ($value) use ($junctionTable) { |
|
263 | + $linkKey = new ForeignKey(array_map(function($value) use ($junctionTable) { |
|
264 | 264 | return 'hidden_' . $junctionTable . $value; |
265 | 265 | }, $this->foreignKey->columns())); |
266 | 266 | |
267 | - $select->join($joinTable, function (Join $join) use ($junctionTable, $joinTable) { |
|
267 | + $select->join($joinTable, function(Join $join) use ($junctionTable, $joinTable) { |
|
268 | 268 | if ($this->junction !== null) { |
269 | 269 | foreach ($this->junction->columns() as $pkColumn => $fkColumn) { |
270 | 270 | $join->on($junctionTable . '.' . $fkColumn, $joinTable . '.' . $pkColumn); |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | } |
371 | 371 | }; |
372 | 372 | |
373 | - $select->join($joinTable, function (Join $join) use ($junctionTable, $joinTable) { |
|
373 | + $select->join($joinTable, function(Join $join) use ($junctionTable, $joinTable) { |
|
374 | 374 | if ($this->junction !== null) { |
375 | 375 | foreach ($this->junction->columns() as $pkColumn => $fkColumn) { |
376 | 376 | $join->on($junctionTable . '.' . $fkColumn, $joinTable . '.' . $pkColumn); |
@@ -64,8 +64,7 @@ discard block |
||
64 | 64 | * @package Platine\Orm |
65 | 65 | * @implements RepositoryInterface<Entity> |
66 | 66 | */ |
67 | -class Repository implements RepositoryInterface |
|
68 | -{ |
|
67 | +class Repository implements RepositoryInterface { |
|
69 | 68 | /** |
70 | 69 | * The entity class |
71 | 70 | * @var class-string |
@@ -125,8 +124,7 @@ discard block |
||
125 | 124 | * @param EntityManager $manager |
126 | 125 | * @param class-string $entityClass |
127 | 126 | */ |
128 | - public function __construct(EntityManager $manager, string $entityClass) |
|
129 | - { |
|
127 | + public function __construct(EntityManager $manager, string $entityClass) { |
|
130 | 128 | $this->manager = $manager; |
131 | 129 | $this->entityClass = $entityClass; |
132 | 130 | } |
@@ -314,8 +312,7 @@ discard block |
||
314 | 312 | /** |
315 | 313 | * {@inheritedoc} |
316 | 314 | */ |
317 | - public function insert(Entity $entity) |
|
318 | - { |
|
315 | + public function insert(Entity $entity) { |
|
319 | 316 | $data = Proxy::instance()->getEntityDataMapper($entity); |
320 | 317 | $mapper = $data->getEntityMapper(); |
321 | 318 | $eventsHandlers = $mapper->getEventHandlers(); |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @package Platine\Orm |
56 | 56 | * @template TEntity as Entity |
57 | 57 | */ |
58 | -interface RepositoryInterface |
|
59 | -{ |
|
58 | +interface RepositoryInterface { |
|
60 | 59 | /** |
61 | 60 | * Return the instance of EntityQuery |
62 | 61 | * @param string|array<int, string>|array<string, Closure> $with |