Test Failed
Push — master ( 19db6b...000bf5 )
by Vsevolods
05:19
created

functions.php ➔ dd()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
use Venta\Debug\VarDumper;
4
5
if (!function_exists('dd')) {
6
7
    /**
8
     * Dumps the provided variable and stops the script execution.
9
     *
10
     * @param array ...$args
11
     */
0 ignored issues
show
Documentation introduced by
Consider making the type for parameter $args a bit more specific; maybe use array[].
Loading history...
12
    function dd(...$args)
13
    {
14
        array_walk($args, [VarDumper::class, 'dump']);
15
        die(1);
16
    }
17
}