@@ -18,12 +18,12 @@ discard block |
||
| 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 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function getMethod() |
| 79 | 79 | { |
| 80 | - $sql_content = 'select * from ' . _DB_PREFIX_. 'pmt_config'; |
|
| 80 | + $sql_content = 'select * from '._DB_PREFIX_.'pmt_config'; |
|
| 81 | 81 | $dbConfigs = Db::getInstance()->executeS($sql_content); |
| 82 | 82 | |
| 83 | 83 | $simpleDbConfigs = array(); |