@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $this->params = []; |
| 101 | 101 | $this->headers = []; |
| 102 | 102 | $this->debug = 'debug' === strtolower(Config::getParam('log.level', 'notice')); |
| 103 | - Logger::log('Context service for ' . static::class . ' cleared!'); |
|
| 103 | + Logger::log('Context service for '.static::class.' cleared!'); |
|
| 104 | 104 | $this->closeConnection(); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function admin() |
| 39 | 39 | { |
| 40 | - if(Security::getInstance()->isUser()) { |
|
| 40 | + if (Security::getInstance()->isUser()) { |
|
| 41 | 41 | throw new ApiException(t('You are not authorized to access this resource'), 403); |
| 42 | 42 | } |
| 43 | 43 | return AuthAdminController::getInstance()->render('api.admin.html.twig', array( |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | "domain" => $this->getDomain(), |
| 46 | 46 | "listLabel" => Api::API_LIST_NAME_FIELD, |
| 47 | 47 | 'modelId' => Api::API_MODEL_KEY_FIELD, |
| 48 | - 'formUrl' => preg_replace('/\/\{(.*)\}$/i', '', $this->getRoute(strtolower('admin-api-form-' . $this->getDomain() . '-' . $this->getApi()), TRUE)), |
|
| 49 | - "url" => preg_replace('/\/\{(.*)\}$/i', '', $this->getRoute(strtolower($this->getDomain() . '-' . 'api-' . $this->getApi() . "-pk"), TRUE)), |
|
| 48 | + 'formUrl' => preg_replace('/\/\{(.*)\}$/i', '', $this->getRoute(strtolower('admin-api-form-'.$this->getDomain().'-'.$this->getApi()), TRUE)), |
|
| 49 | + "url" => preg_replace('/\/\{(.*)\}$/i', '', $this->getRoute(strtolower($this->getDomain().'-'.'api-'.$this->getApi()."-pk"), TRUE)), |
|
| 50 | 50 | ), [], ''); |
| 51 | 51 | } |
| 52 | 52 | |