AddEnvironmentInformation::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Facade\Ignition\Middleware;
4
5
use Facade\FlareClient\Report;
6
7
class AddEnvironmentInformation
8
{
9
    public function handle(Report $report, $next)
10
    {
11
        $report->frameworkVersion(app()->version());
12
13
        $report->group('env', [
14
            'laravel_version' => app()->version(),
15
            'laravel_locale' => app()->getLocale(),
16
            'laravel_config_cached' => app()->configurationIsCached(),
17
            'php_version' => phpversion(),
18
        ]);
19
20
        return $next($report);
21
    }
22
}
23