Total Complexity | 8 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class PagantisLogModuleFrontController extends ModuleFrontController |
||
|
|||
14 | { |
||
15 | /** |
||
16 | * @var string $message |
||
17 | */ |
||
18 | protected $message; |
||
19 | |||
20 | /** |
||
21 | * @var bool $error |
||
22 | */ |
||
23 | protected $error = false; |
||
24 | |||
25 | /** |
||
26 | * Controller index method: |
||
27 | */ |
||
28 | public function postProcess() |
||
29 | { |
||
30 | if (!$this->authorize()) { |
||
31 | return; |
||
32 | }; |
||
33 | |||
34 | $sql = 'SELECT * FROM '._DB_PREFIX_.'pagantis_log ORDER BY id desc LIMIT 200'; |
||
35 | if ($results = Db::getInstance()->ExecuteS($sql)) { |
||
36 | foreach ($results as $row) { |
||
37 | $this->message[] = (is_null(json_decode($row['log']))) ? $row['log'] : json_decode($row['log']); |
||
38 | } |
||
39 | } |
||
40 | $this->jsonResponse(); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Send a jsonResponse |
||
45 | */ |
||
46 | public function jsonResponse() |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return bool|null |
||
60 | */ |
||
61 | public function authorize() |
||
75 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths