Completed
Push — master ( 8dce14...ef59ee )
by Freek
13:50
created

helpers.php ➔ ddd()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 20
rs 9.6
c 0
b 0
f 0
1
<?php
2
3
if (! function_exists('ddd')) {
4
    function ddd()
5
    {
6
        $args = func_get_args();
7
        call_user_func_array('dump', $args);
8
9
        $handler = app(\Facade\Ignition\ErrorPage\ErrorPageHandler::class);
10
11
        $client = app()->make('flare.client');
12
13
        $report = $client->createReportFromMessage('Dump, Die, Debug', 'info');
14
15
        $handler->handleReport($report, 'DebugTab', [
16
            'dump' => true,
17
            'glow' => false,
18
            'log' => false,
19
            'query' => false,
20
        ]);
21
22
        die();
23
    }
24
}
25