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.
Completed
Push — master ( 8182e1...f8e5a3 )
by Mewes
02:18
created

DocumentTokenParser::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace MewesK\TwigSpreadsheetBundle\Twig\TokenParser;
4
5
use MewesK\TwigSpreadsheetBundle\Twig\Node\DocumentNode;
6
7
/**
8
 * Class DocumentTokenParser.
9
 */
10
class DocumentTokenParser extends BaseTokenParser
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function configureParameters(\Twig_Token $token): array
16
    {
17
        return [
18
            'properties' => [
19
                'type' => self::PARAMETER_TYPE_ARRAY,
20
                'default' => new \Twig_Node_Expression_Array([], $token->getLine()),
21
            ],
22
        ];
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function getNode(): string
29
    {
30
        return DocumentNode::class;
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function getTag()
37
    {
38
        return 'xlsdocument';
39
    }
40
}
41