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

Gql   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
ccs 0
cts 4
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A canQueryRetour() 0 5 1
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