Passed
Push — v3 ( 102dec...3a0576 )
by Andrew
47:49 queued 34:00
created

Gql::canQueryRetour()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
ccs 0
cts 4
cp 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
namespace nystudio107\retour\helpers;
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
4
use craft\helpers\Gql as GqlHelper;
5
6
/**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
7
 * @author    nystudio107
0 ignored issues
show
Coding Style introduced by
Content of the @author tag must be in the form "Display Name <[email protected]>"
Loading history...
Coding Style introduced by
Tag value for @author tag indented incorrectly; expected 2 spaces but found 4
Loading history...
Coding Style introduced by
The tag in position 1 should be the @package tag
Loading history...
8
 * @package   Retour
0 ignored issues
show
Coding Style introduced by
Tag value for @package tag indented incorrectly; expected 1 spaces but found 3
Loading history...
9
 * @since     3.1.54
0 ignored issues
show
Coding Style introduced by
Tag value for @since tag indented incorrectly; expected 3 spaces but found 5
Loading history...
Coding Style introduced by
The tag in position 3 should be the @author tag
Loading history...
10
 */
0 ignored issues
show
Coding Style introduced by
Missing @link tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @category tag in class comment
Loading history...
11
class Gql extends GqlHelper
12
{
13
    // Public Methods
14
    // =========================================================================
15
16
    public static function canQueryRetour(): bool
0 ignored issues
show
Coding Style introduced by
You must use "/**" style comments for a function comment
Loading history...
17
    {
18
        $allowedEntities = self::extractAllowedEntitiesFromSchema();
19
20
        return isset($allowedEntities['retour']);
21
    }
22
}
23