Make all constructor signatures multiline

[MAILPOET-3732]
This commit is contained in:
Pavel Dohnal
2021-09-16 13:15:19 +02:00
committed by Jan Lysý
parent 150862d986
commit cdda3480ca
200 changed files with 751 additions and 200 deletions

View File

@@ -20,7 +20,11 @@ class Router {
const RESPONSE_ERROR = 404;
const RESPONE_FORBIDDEN = 403;
public function __construct(AccessControl $accessControl, ContainerInterface $container, $apiData = false) {
public function __construct(
AccessControl $accessControl,
ContainerInterface $container,
$apiData = false
) {
$apiData = ($apiData) ? $apiData : $_GET;
$this->apiRequest = is_array($apiData) && array_key_exists(self::NAME, $apiData);
$this->endpoint = isset($apiData['endpoint']) ?