@@ -112,6 +112,7 @@ discard block |
||
112 | 112 | * @param User $user |
113 | 113 | * @param User $owner |
114 | 114 | * @param string ...$resources |
115 | + * @param string[] $resources |
|
115 | 116 | * @return Permission[] |
116 | 117 | * @throws ORMException |
117 | 118 | */ |
@@ -142,7 +143,7 @@ discard block |
||
142 | 143 | /** |
143 | 144 | * @param $collection |
144 | 145 | * @param $toRemove |
145 | - * @param $owner |
|
146 | + * @param User $owner |
|
146 | 147 | * @param $result |
147 | 148 | * @throws ORMException |
148 | 149 | */ |
@@ -163,9 +164,9 @@ discard block |
||
163 | 164 | } |
164 | 165 | |
165 | 166 | /** |
166 | - * @param $toAdd |
|
167 | - * @param $user |
|
168 | - * @param $owner |
|
167 | + * @param string[] $toAdd |
|
168 | + * @param User $user |
|
169 | + * @param User $owner |
|
169 | 170 | * @param $result |
170 | 171 | * @throws ORMException |
171 | 172 | */ |
@@ -5,7 +5,6 @@ |
||
5 | 5 | |
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | 7 | use Doctrine\ORM\ORMException; |
8 | -use Doctrine\ORM\ORMInvalidArgumentException; |
|
9 | 8 | use Psr\Http\Message\ResponseInterface; |
10 | 9 | use Psr\Http\Message\ServerRequestInterface; |
11 | 10 | use Psr\Http\Server\RequestHandlerInterface; |
@@ -4,7 +4,6 @@ discard block |
||
4 | 4 | namespace SlayerBirden\DataFlowServer\Authentication\Controller; |
5 | 5 | |
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | -use Doctrine\ORM\ORMException; |
|
8 | 7 | use Psr\Http\Message\ResponseInterface; |
9 | 8 | use Psr\Http\Message\ServerRequestInterface; |
10 | 9 | use Psr\Http\Server\MiddlewareInterface; |
@@ -13,7 +12,6 @@ discard block |
||
13 | 12 | use SlayerBirden\DataFlowServer\Authentication\Exception\PermissionDeniedException; |
14 | 13 | use SlayerBirden\DataFlowServer\Authentication\TokenManagerInterface; |
15 | 14 | use SlayerBirden\DataFlowServer\Doctrine\Middleware\ResourceMiddlewareInterface; |
16 | -use SlayerBirden\DataFlowServer\Domain\Entities\ClaimedResourceInterface; |
|
17 | 15 | use SlayerBirden\DataFlowServer\Domain\Entities\User; |
18 | 16 | use SlayerBirden\DataFlowServer\Notification\DangerMessage; |
19 | 17 | use SlayerBirden\DataFlowServer\Notification\SuccessMessage; |
@@ -150,7 +150,7 @@ |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
153 | - * @param Collection|Grant[] $grants |
|
153 | + * @param Collection $grants |
|
154 | 154 | */ |
155 | 155 | public function setGrants(Collection $grants): void |
156 | 156 | { |
@@ -115,7 +115,7 @@ |
||
115 | 115 | * @param Token $token |
116 | 116 | * @param array $resources |
117 | 117 | * @param User $user |
118 | - * @return ArrayCollection|Grant[] |
|
118 | + * @return \Doctrine\Common\Collections\Collection |
|
119 | 119 | * @throws PermissionDeniedException |
120 | 120 | * @throws ORMException |
121 | 121 | */ |
@@ -5,7 +5,6 @@ |
||
5 | 5 | |
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | 7 | use Doctrine\ORM\ORMException; |
8 | -use Doctrine\ORM\ORMInvalidArgumentException; |
|
9 | 8 | use Psr\Http\Message\ResponseInterface; |
10 | 9 | use Psr\Http\Message\ServerRequestInterface; |
11 | 10 | use Psr\Http\Server\RequestHandlerInterface; |