Request   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getIsSiteRequest() 0 3 1
A getIsRestRequest() 0 3 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipboxfactory/craft-rest/blob/master/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-rest
7
 */
8
9
namespace flipbox\craft\rest;
10
11
/**
12
 * @inheritdoc
13
 *
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 1.0.0
16
 */
17
class Request extends \craft\web\Request
18
{
19
    /**
20
     * @inheritdoc
21
     */
22
    public function getIsRestRequest(): bool
23
    {
24
        return true;
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function getIsSiteRequest(): bool
31
    {
32
        return false;
33
    }
34
}
35