GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 35-43 lines in 5 locations

Twig/TokenParser/CellTokenParser.php 1 location

@@ 10-44 (lines=35) @@
7
/**
8
 * Class CellTokenParser.
9
 */
10
class CellTokenParser extends BaseTokenParser
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function configureParameters(\Twig_Token $token): array
16
    {
17
        return [
18
            'index' => [
19
                'type' => self::PARAMETER_TYPE_VALUE,
20
                'default' => new \Twig_Node_Expression_Constant(null, $token->getLine()),
21
            ],
22
            'properties' => [
23
                'type' => self::PARAMETER_TYPE_ARRAY,
24
                'default' => new \Twig_Node_Expression_Array([], $token->getLine()),
25
            ],
26
        ];
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getNode(): string
33
    {
34
        return CellNode::class;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getTag()
41
    {
42
        return 'xlscell';
43
    }
44
}
45

Twig/TokenParser/DrawingTokenParser.php 1 location

@@ 10-52 (lines=43) @@
7
/**
8
 * Class DrawingTokenParser.
9
 */
10
class DrawingTokenParser extends BaseTokenParser
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function configureParameters(\Twig_Token $token): array
16
    {
17
        return [
18
            'path' => [
19
                'type' => self::PARAMETER_TYPE_VALUE,
20
                'default' => false,
21
            ],
22
            'properties' => [
23
                'type' => self::PARAMETER_TYPE_ARRAY,
24
                'default' => new \Twig_Node_Expression_Array([], $token->getLine()),
25
            ],
26
        ];
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getNode(): string
33
    {
34
        return DrawingNode::class;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getTag()
41
    {
42
        return 'xlsdrawing';
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48
    public function hasBody(): bool
49
    {
50
        return false;
51
    }
52
}
53

Twig/TokenParser/FooterTokenParser.php 1 location

@@ 10-44 (lines=35) @@
7
/**
8
 * Class FooterTokenParser.
9
 */
10
class FooterTokenParser extends BaseTokenParser
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function configureParameters(\Twig_Token $token): array
16
    {
17
        return [
18
            'type' => [
19
                'type' => self::PARAMETER_TYPE_VALUE,
20
                'default' => new \Twig_Node_Expression_Constant('footer', $token->getLine()),
21
            ],
22
            'properties' => [
23
                'type' => self::PARAMETER_TYPE_ARRAY,
24
                'default' => new \Twig_Node_Expression_Array([], $token->getLine()),
25
            ],
26
        ];
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getNode(): string
33
    {
34
        return FooterNode::class;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getTag()
41
    {
42
        return 'xlsfooter';
43
    }
44
}
45

Twig/TokenParser/HeaderTokenParser.php 1 location

@@ 10-44 (lines=35) @@
7
/**
8
 * Class HeaderTokenParser.
9
 */
10
class HeaderTokenParser extends BaseTokenParser
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function configureParameters(\Twig_Token $token): array
16
    {
17
        return [
18
            'type' => [
19
                'type' => self::PARAMETER_TYPE_VALUE,
20
                'default' => new \Twig_Node_Expression_Constant('header', $token->getLine()),
21
            ],
22
            'properties' => [
23
                'type' => self::PARAMETER_TYPE_ARRAY,
24
                'default' => new \Twig_Node_Expression_Array([], $token->getLine()),
25
            ],
26
        ];
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getNode(): string
33
    {
34
        return HeaderNode::class;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getTag()
41
    {
42
        return 'xlsheader';
43
    }
44
}
45

Twig/TokenParser/SheetTokenParser.php 1 location

@@ 10-44 (lines=35) @@
7
/**
8
 * Class SheetTokenParser.
9
 */
10
class SheetTokenParser extends BaseTokenParser
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function configureParameters(\Twig_Token $token): array
16
    {
17
        return [
18
            'index' => [
19
                'type' => self::PARAMETER_TYPE_VALUE,
20
                'default' => new \Twig_Node_Expression_Constant(null, $token->getLine()),
21
            ],
22
            'properties' => [
23
                'type' => self::PARAMETER_TYPE_ARRAY,
24
                'default' => new \Twig_Node_Expression_Array([], $token->getLine()),
25
            ],
26
        ];
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getNode(): string
33
    {
34
        return SheetNode::class;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getTag()
41
    {
42
        return 'xlssheet';
43
    }
44
}
45