Passed
Push — master ( c39ef6...1fc558 )
by Peter
05:09
created

Environment::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace PeterColes\Themes\Matchers;
4
5
class Environment implements MatcherInterface
6
{
7
    public function handle($request, $match)
8
    {
9
        return app()->environment() == $match;
10
    }
11
}
12