TestingDebugBarBootValidator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isInDebugMode() 0 3 1
1
<?php
2
3
namespace MaksimM\ConditionalDebugBar\DebugModeBootValidators;
4
5
use MaksimM\ConditionalDebugBar\Interfaces\DebugModeChecker;
6
7
class TestingDebugBarBootValidator implements DebugModeChecker
8
{
9
    public function isInDebugMode()
10
    {
11
        return app()->environment() == 'testing';
0 ignored issues
show
introduced by
The method environment() does not exist on Illuminate\Container\Container. Are you sure you never get this type here, but always one of the subclasses? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

11
        return app()->/** @scrutinizer ignore-call */ environment() == 'testing';
Loading history...
12
    }
13
}
14