@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function isAllowed( |
| 63 | 63 | UserEntity $userEntity, |
| 64 | - ?ResourceEntity $resourceEntity = null, |
|
| 65 | - ?ApplicationEntity $applicationEntity = null |
|
| 64 | + ? ResourceEntity $resourceEntity = null, |
|
| 65 | + ? ApplicationEntity $applicationEntity = null |
|
| 66 | 66 | ) : bool { |
| 67 | 67 | // We assume the best case: the user has access |
| 68 | 68 | $allowed = true; |
@@ -121,8 +121,8 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | private function checkPolicy( |
| 123 | 123 | PolicyEntity $policyEntity, |
| 124 | - ?ApplicationEntity $applicationEntity = null, |
|
| 125 | - ?ResourceEntity $resourceEntity = null |
|
| 124 | + ? ApplicationEntity $applicationEntity = null, |
|
| 125 | + ? ResourceEntity $resourceEntity = null |
|
| 126 | 126 | ) : bool { |
| 127 | 127 | $policyApplicationId = $policyEntity->getApplicationId(); |
| 128 | 128 | $policyResourceId = $policyEntity->getResourceId(); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function isAllowed( |
| 34 | 34 | UserEntity $userEntity, |
| 35 | - ?ResourceEntity $resourceEntity = null, |
|
| 36 | - ?ApplicationEntity $applicationEntity = null |
|
| 35 | + ? ResourceEntity $resourceEntity = null, |
|
| 36 | + ? ApplicationEntity $applicationEntity = null |
|
| 37 | 37 | ) : bool; |
| 38 | 38 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | $form = $this->getLoginForm(); |
| 75 | 75 | |
| 76 | 76 | if ($this->request->getMethod() == 'POST') { |
| 77 | - $postData = $this->request->getParsedBody() ; |
|
| 77 | + $postData = $this->request->getParsedBody(); |
|
| 78 | 78 | $this->authCredential->addCredential('username', $postData['login']['identification'] ?? '') |
| 79 | 79 | ->addCredential('password', $postData['login']['password'] ?? ''); |
| 80 | 80 | |