@@ -58,11 +58,11 @@ discard block |
||
| 58 | 58 | $userEntity = $this->container->get(UserEntityInterface::class); |
| 59 | 59 | if ($userEntity instanceof DoctrineUserEntity) { |
| 60 | 60 | $em = $this->container->get(EntityManager::class); |
| 61 | - $this->items[UserRepositoryInterface::class] = function () use ($em, $userEntity, $self) { |
|
| 61 | + $this->items[UserRepositoryInterface::class] = function() use ($em, $userEntity, $self) { |
|
| 62 | 62 | return new DoctrineUserRepository($em, $em->getClassMetadata(get_class($userEntity)), $self); |
| 63 | 63 | }; |
| 64 | 64 | } elseif ($userEntity instanceof EloquentUserEntity) { |
| 65 | - $this->items[UserRepositoryInterface::class] = function () { |
|
| 65 | + $this->items[UserRepositoryInterface::class] = function() { |
|
| 66 | 66 | return new EloquentUserRepository(); |
| 67 | 67 | }; |
| 68 | 68 | } |
@@ -72,11 +72,11 @@ discard block |
||
| 72 | 72 | $sessionEntity = $this->container->get(SessionEntityInterface::class); |
| 73 | 73 | if ($sessionEntity instanceof DoctrineSessionEntity) { |
| 74 | 74 | $em = $this->container->get(EntityManager::class); |
| 75 | - $this->items[SessionRepositoryInterface::class] = function () use ($em, $sessionEntity, $self) { |
|
| 75 | + $this->items[SessionRepositoryInterface::class] = function() use ($em, $sessionEntity, $self) { |
|
| 76 | 76 | return new DoctrineSessionRepository($em, $em->getClassMetadata(get_class($sessionEntity)), $self); |
| 77 | 77 | }; |
| 78 | 78 | } elseif ($sessionEntity instanceof EloquentSessionEntity) { |
| 79 | - $this->items[SessionRepositoryInterface::class] = function () { |
|
| 79 | + $this->items[SessionRepositoryInterface::class] = function() { |
|
| 80 | 80 | return new EloquentSessionRepository(); |
| 81 | 81 | }; |
| 82 | 82 | } |
@@ -86,24 +86,24 @@ discard block |
||
| 86 | 86 | $groupEntity = $this->container->get(GroupEntityInterface::class); |
| 87 | 87 | if ($groupEntity instanceof DoctrineGroupEntity) { |
| 88 | 88 | $em = $this->container->get(EntityManager::class); |
| 89 | - $this->items[GroupRepositoryInterface::class] = function () use ($em, $groupEntity, $self) { |
|
| 89 | + $this->items[GroupRepositoryInterface::class] = function() use ($em, $groupEntity, $self) { |
|
| 90 | 90 | return new DoctrineGroupRepository($em, $em->getClassMetadata(get_class($groupEntity)), $self); |
| 91 | 91 | }; |
| 92 | 92 | } elseif ($groupEntity instanceof EloquentGroupEntity) { |
| 93 | - $this->items[GroupRepositoryInterface::class] = function () { |
|
| 93 | + $this->items[GroupRepositoryInterface::class] = function() { |
|
| 94 | 94 | return new EloquentGroupRepository(); |
| 95 | 95 | }; |
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | if (!$hasUserValidator) { |
| 100 | - $this->items[UserValidatorInterface::class] = function () use ($self) { |
|
| 100 | + $this->items[UserValidatorInterface::class] = function() use ($self) { |
|
| 101 | 101 | return new UserValidator($self); |
| 102 | 102 | }; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | if (!$hasGroupValidator) { |
| 106 | - $this->items[GroupValidatorInterface::class] = function () use ($self) { |
|
| 106 | + $this->items[GroupValidatorInterface::class] = function() use ($self) { |
|
| 107 | 107 | return new GroupValidator($self); |
| 108 | 108 | }; |
| 109 | 109 | } |