Commit a1e5560d authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Code cleanup

parent efde0b8f
......@@ -158,8 +158,8 @@ abstract class AbstractRestMiddleware implements LoggerAwareInterface, Middlewar
/**
* Method returns the requested action for the rest controller. If no
*
* @param $method
* @return string
* @throws Exception
*/
protected function getCallableActionName($method): string {
if ($method === 'POST') {
......@@ -173,7 +173,7 @@ abstract class AbstractRestMiddleware implements LoggerAwareInterface, Middlewar
}
/**
* @param array|null $configuration
* @param $data
* @param int $statusCode
* @return Response
*/
......
......@@ -161,7 +161,9 @@ class RestAuthenticator extends AbstractRestMiddleware {
);
}
return $this->createExceptionJsonResponse('The DELETE method is not permitted for the given path.', 405);
return $this->createExceptionJsonResponse(
'The DELETE method is not permitted for the given path.', 405
);
}
if (
......@@ -186,7 +188,9 @@ class RestAuthenticator extends AbstractRestMiddleware {
);
}
return $this->createExceptionJsonResponse('The ' . $httpMethod . ' method is not permitted for the given path.', 405);
return $this->createExceptionJsonResponse(
'The ' . $httpMethod . ' method is not permitted for the given path.', 405
);
}
if ($httpMethod === 'POST') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment