Completed
Push — master ( 03c10c...407786 )
by Supun
10s
created

helpers.php (1 issue)

1
<?PHP
2
3
function sd(){
4
    $Args = func_get_args();
5
    $console = new \PhpConsoleColor\Console();
6
7
    foreach($Args as $str) {
8
        $str = print_r($str, TRUE);
9
        $console->writeLn("<green>$str</green>");
10
11
    }
12
    $bt = debug_backtrace();
13
    $caller = array_shift($bt);
14
    $console->writeLn("<blue>".$caller['file'].":".$caller['line']."<blue>");
15
16
    die();
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...
17
}
18
19
20
function s(){
21
    $Args = func_get_args();
22
    $console = new \PhpConsoleColor\Console();
23
24
    foreach($Args as $str) {
25
        $str = print_r($str, TRUE);
26
        $console->writeLn("<green>$str</green>");
27
    }
28
    $bt = debug_backtrace();
29
    $caller = array_shift($bt);
30
    $console->writeLn("<blue>".$caller['file'].":".$caller['line']."<blue>");
31
32
33
}
34
35