Issues (1519)

system/modules/Exchange1c/Exchange1c.php (1 issue)

Severity
1
<?php
2
3
/**
4
 * Exchange1c module
5
 *
6
 * @author Alexey Krupskiy <[email protected]>
7
 * @link http://inji.ru/
8
 * @copyright 2015 Alexey Krupskiy
9
 * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
10
 */
11
class Exchange1c extends Module {
12
13
    public function response($code, $text = '', $exit = true) {
14
        echo $code;
15
        if ($text) {
16
            echo "\n";
17
            echo $text;
18
        }
19
        if ($exit) {
20
            exit();
0 ignored issues
show
Using exit here is not recommended.

In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.

Loading history...
21
        }
22
    }
23
24
}
25