Passed
Push — master ( 1794ac...df093a )
by Alexander
05:51
created

d()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 2
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
if (!function_exists('d')) {
6
    function d(...$variables)
7
    {
8
        foreach ($variables as $variable) {
9
            \Yiisoft\VarDumper\VarDumper::dump($variable, 10, true);
10
        }
11
    }
12
}
13
14
if (!function_exists('dd')) {
15
    function dd(...$variables)
16
    {
17
        foreach ($variables as $variable) {
18
            \Yiisoft\VarDumper\VarDumper::dump($variable, 10, true);
19
        }
20
        die();
0 ignored issues
show
Best Practice introduced by
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