@@ -65,8 +65,7 @@ discard block |
||
| 65 | 65 | * @template TEntity as Entity |
| 66 | 66 | * @implements RepositoryInterface<Entity> |
| 67 | 67 | */ |
| 68 | -class Repository implements RepositoryInterface |
|
| 69 | -{ |
|
| 68 | +class Repository implements RepositoryInterface { |
|
| 70 | 69 | /** |
| 71 | 70 | * The entity class |
| 72 | 71 | * @var class-string<TEntity> |
@@ -126,8 +125,7 @@ discard block |
||
| 126 | 125 | * @param EntityManager $manager |
| 127 | 126 | * @param class-string<TEntity> $entityClass |
| 128 | 127 | */ |
| 129 | - public function __construct(EntityManager $manager, string $entityClass) |
|
| 130 | - { |
|
| 128 | + public function __construct(EntityManager $manager, string $entityClass) { |
|
| 131 | 129 | $this->manager = $manager; |
| 132 | 130 | $this->entityClass = $entityClass; |
| 133 | 131 | } |
@@ -315,8 +313,7 @@ discard block |
||
| 315 | 313 | /** |
| 316 | 314 | * {@inheritedoc} |
| 317 | 315 | */ |
| 318 | - public function insert(Entity $entity) |
|
| 319 | - { |
|
| 316 | + public function insert(Entity $entity) { |
|
| 320 | 317 | $data = Proxy::instance()->getEntityDataMapper($entity); |
| 321 | 318 | $mapper = $data->getEntityMapper(); |
| 322 | 319 | $eventsHandlers = $mapper->getEventHandlers(); |