Passed
Push — master ( ce2bc1...e68e02 )
by Fran
05:34
created
src/base/types/traits/CurlTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/base/types/traits/Api/ManagerTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.