@@ -59,7 +59,7 @@ |
||
59 | 59 | * @param ResponseInterface $response |
60 | 60 | * @return void |
61 | 61 | */ |
62 | - public function __invoke(ServerRequestInterface &$request, ResponseInterface&$response) : void |
|
62 | + public function __invoke(ServerRequestInterface&$request, ResponseInterface&$response) : void |
|
63 | 63 | { |
64 | 64 | $identity = 'Unauthenticated user'; |
65 | 65 | $requestAttributes = $request->getAttributes(); |
@@ -141,7 +141,7 @@ |
||
141 | 141 | * @param string $resourceName |
142 | 142 | * @param string $applicationName |
143 | 143 | */ |
144 | - private function checkResourceNameAgainstRouting(string &$resourceName, string $applicationName) : void |
|
144 | + private function checkResourceNameAgainstRouting(string&$resourceName, string $applicationName) : void |
|
145 | 145 | { |
146 | 146 | $applicationConfig = $this->configuration |
147 | 147 | ->getData('applications/'.$applicationName); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $parts = explode('#', $input); |
43 | 43 | array_walk( |
44 | 44 | $parts, |
45 | - function (&$value) { |
|
45 | + function(&$value) { |
|
46 | 46 | $value = ucfirst(strtolower($value)); |
47 | 47 | } |
48 | 48 | ); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | * @return string |
36 | 36 | */ |
37 | 37 | protected function getSelectedThemeResourcePath( |
38 | - string &$selectedTheme, |
|
38 | + string&$selectedTheme, |
|
39 | 39 | ConfigurationInterface $configuration, |
40 | 40 | EnvironmentInterface $environmentManager |
41 | 41 | ) : string { |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $config = []; |
100 | 100 | |
101 | 101 | if ($this->configuration->has('renderer/Global/'.$type)) { |
102 | - $config = $this->configuration->getData('renderer/Global/' . $type); |
|
102 | + $config = $this->configuration->getData('renderer/Global/'.$type); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | if ($this->configuration->has('renderer/'.$module.'/'.$type)) { |
@@ -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->setCredential('username', $postData['login']['identification'] ?? '') |
79 | 79 | ->setCredential('password', $postData['login']['password'] ?? ''); |
80 | 80 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | array $filesData |
69 | 69 | ) { |
70 | 70 | $this->configuration = $configuration->getConfig('applications'); |
71 | - $this->documentRoot = realpath(__DIR__ . '/../../../../../'); |
|
71 | + $this->documentRoot = realpath(__DIR__.'/../../../../../'); |
|
72 | 72 | |
73 | 73 | if (isset($serverData['HTTP_REFERER'])) { |
74 | 74 | $serverData['HTTP_REFERER'] = urldecode($serverData['HTTP_REFERER']); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | * |
69 | 69 | * @return null|UserEntity |
70 | 70 | */ |
71 | - public function getIdentity() : ?UserEntity |
|
71 | + public function getIdentity() : ? UserEntity |
|
72 | 72 | { |
73 | 73 | return $this->sessionManager->get($this->sessionKey); |
74 | 74 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @return UserEntity|null |
42 | 42 | */ |
43 | - public function getIdentity() : ?UserEntity; |
|
43 | + public function getIdentity() : ? UserEntity; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Clears the storage. |