Passed
Pull Request — master (#30)
by Raúl
02:04
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
         }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                     Db::getInstance()->update(
52 52
                         'pmt_config',
53 53
                         array('value' => pSQL($value)),
54
-                        'config = \''. pSQL($config) .'\''
54
+                        'config = \''.pSQL($config).'\''
55 55
                     );
56 56
                 } else {
57 57
                     $errors[$config] = $value;
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function getMethod()
77 77
     {
78
-        $sql_content = 'select * from ' . _DB_PREFIX_. 'pmt_config';
78
+        $sql_content = 'select * from '._DB_PREFIX_.'pmt_config';
79 79
         $dbConfigs = Db::getInstance()->executeS($sql_content);
80 80
 
81 81
         $simpleDbConfigs = array();
Please login to merge, or discard this patch.