Completed
Push — master ( b6dd21...9691ed )
by Raúl
14s queued 11s
created
controllers/front/config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
     public function initContent()
19 19
     {
20 20
         $this->authorize();
21
-        $method = Tools::strtolower($_SERVER['REQUEST_METHOD']) . "Method";
21
+        $method = Tools::strtolower($_SERVER['REQUEST_METHOD'])."Method";
22 22
         if (method_exists($this, $method)) {
23 23
             header('HTTP/1.1 200 Ok', true, 200);
24 24
             header('Content-Type: application/json', true);
25 25
             $result = json_encode($this->{$method}());
26
-            header('Content-Length: ' . Tools::strlen($result));
26
+            header('Content-Length: '.Tools::strlen($result));
27 27
             echo $result;
28 28
             exit();
29 29
         }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                     Db::getInstance()->update(
47 47
                         'pmt_config',
48 48
                         array('value' => $value),
49
-                        'config = \''. $config .'\''
49
+                        'config = \''.$config.'\''
50 50
                     );
51 51
                 } else {
52 52
                     $errors[$config] = $value;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function getMethod()
72 72
     {
73
-        $sql_content = 'select * from ' . _DB_PREFIX_. 'pmt_config';
73
+        $sql_content = 'select * from '._DB_PREFIX_.'pmt_config';
74 74
         $dbConfigs = Db::getInstance()->executeS($sql_content);
75 75
 
76 76
         $simpleDbConfigs = array();
Please login to merge, or discard this patch.