Completed
Push — master ( 64e350...a5d24e )
by Gabriel
03:01
created
src/Container.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
             $userEntity = $this->container->get(UserEntityInterface::class);
43 43
             if ($userEntity instanceof DoctrineUserEntity) {
44 44
                 $em = $this->container->get(EntityManager::class);
45
-                $this->items[UserRepositoryInterface::class] = function () use ($em, $userEntity) {
45
+                $this->items[UserRepositoryInterface::class] = function() use ($em, $userEntity) {
46 46
                     return new DoctrineUserRepository($em, $em->getClassMetadata(get_class($userEntity)));
47 47
                 };
48 48
             } elseif ($userEntity instanceof EloquentUserEntity) {
49
-                $this->items[UserRepositoryInterface::class] = function () {
49
+                $this->items[UserRepositoryInterface::class] = function() {
50 50
                     return new EloquentUserRepository();
51 51
                 };
52 52
             }
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
             $sessionEntity = $this->container->get(SessionEntityInterface::class);
57 57
             if ($sessionEntity instanceof DoctrineSessionEntity) {
58 58
                 $em = $this->container->get(EntityManager::class);
59
-                $this->items[SessionRepositoryInterface::class] = function () use ($em, $sessionEntity) {
59
+                $this->items[SessionRepositoryInterface::class] = function() use ($em, $sessionEntity) {
60 60
                     return new DoctrineSessionRepository($em, $em->getClassMetadata(get_class($sessionEntity)));
61 61
                 };
62 62
             } elseif ($sessionEntity instanceof EloquentSessionEntity) {
63
-                $this->items[SessionRepositoryInterface::class] = function () {
63
+                $this->items[SessionRepositoryInterface::class] = function() {
64 64
                     return new EloquentSessionRepository();
65 65
                 };
66 66
             }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         if (!$hasUserValidator) {
70 70
             $self = $this;
71
-            $this->items[UserValidatorInterface::class] = function () use ($self) {
71
+            $this->items[UserValidatorInterface::class] = function() use ($self) {
72 72
                 return new UserValidator($self);
73 73
             };
74 74
         }
Please login to merge, or discard this patch.