@@ -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 |