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

AnyFrontendRequest::isMatchingRoute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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