@@ -26,7 +26,7 @@ |
||
26 | 26 | * |
27 | 27 | * @var Request |
28 | 28 | */ |
29 | - private $request = null; |
|
29 | + private $request = null; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Security |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @var Request |
28 | 28 | */ |
29 | - private $request = null; |
|
29 | + private $request = null; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Security |
@@ -96,12 +96,12 @@ discard block |
||
96 | 96 | throw new \InvalidArgumentException('Document id is not defined'); |
97 | 97 | } |
98 | 98 | |
99 | - $users = $this->manager->getRepository(User::class)->findBy(['people' => $person]); |
|
99 | + $users = $this->manager->getRepository(User::class)->findBy(['people' => $person]); |
|
100 | 100 | if (count($users) == 1) { |
101 | 101 | throw new \InvalidArgumentException('Deve existir pelo menos um usuário'); |
102 | 102 | } |
103 | 103 | |
104 | - $user = $this->manager->getRepository(User::class)->findOneBy(['id' => $payload['id'], 'people' => $person]); |
|
104 | + $user = $this->manager->getRepository(User::class)->findOneBy(['id' => $payload['id'], 'people' => $person]); |
|
105 | 105 | if (!$user instanceof User) { |
106 | 106 | throw new \InvalidArgumentException('Person user was not found'); |
107 | 107 | } |