Completed
Branch BUG/reg-status-change-recursio... (2db0c9)
by
unknown
20:03 queued 10:32
created

AnyFrontendRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A isMatchingRoute() 0 4 1
1
<?php
2
3
namespace EventEspresso\core\domain\entities\route_match\specifications\frontend;
4
5
use EventEspresso\core\domain\entities\route_match\RouteMatchSpecification;
6
7
/**
8
 * AnyFrontendRequest
9
 * Returns true when the current request is for any front end.
10
 *
11
 * @package EventEspresso\core\domain\entities\route_match\specifications\frontend
12
 * @author  Darren Ethier
13
 * @since   $VID:$
14
 */
15
class AnyFrontendRequest extends RouteMatchSpecification
16
{
17
    public function isMatchingRoute()
18
    {
19
        return $this->request->isFrontend();
20
    }
21
}
22