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 = 13-14 lines in 3 locations

Tests/Functional/BasicFunctionalTest.php 3 locations

@@ 38-51 (lines=14) @@
35
     *
36
     * @dataProvider formatProvider
37
     */
38
    public function testSimple($format)
39
    {
40
        $document = $this->getDocument(static::$router->generate('test_default', ['templateName' => 'simple', '_format' => $format]), $format);
41
        static::assertNotNull($document, 'Document does not exist');
42
43
        $sheet = $document->getSheetByName('Test');
44
        static::assertNotNull($sheet, 'Sheet does not exist');
45
46
        static::assertEquals(100270, $sheet->getCell('B22')->getValue(), 'Unexpected value in B22');
47
48
        static::assertEquals('=SUM(B2:B21)', $sheet->getCell('B23')->getValue(), 'Unexpected value in B23');
49
        static::assertTrue($sheet->getCell('B23')->isFormula(), 'Unexpected value in isFormula');
50
        static::assertEquals(100270, $sheet->getCell('B23')->getCalculatedValue(), 'Unexpected calculated value in B23');
51
    }
52
53
    /**
54
     * @param string $format
@@ 85-97 (lines=13) @@
82
     *
83
     * @dataProvider formatProvider
84
     */
85
    public function testDocumentTemplatePath1($format)
86
    {
87
        $document = $this->getDocument(static::$router->generate('test_default', ['templateName' => 'documentTemplatePath1', '_format' => $format]), $format);
88
        static::assertNotNull($document, 'Document does not exist');
89
90
        $sheet = $document->getSheet(0);
91
        static::assertNotNull($sheet, 'Sheet does not exist');
92
93
        static::assertEquals('Hello', $sheet->getCell('A1')->getValue(), 'Unexpected value in A1');
94
        static::assertEquals('World', $sheet->getCell('B1')->getValue(), 'Unexpected value in B1');
95
        static::assertEquals('Foo', $sheet->getCell('A2')->getValue(), 'Unexpected value in A2');
96
        static::assertEquals('Bar', $sheet->getCell('B2')->getValue(), 'Unexpected value in B2');
97
    }
98
99
    /**
100
     * @param string $format
@@ 106-118 (lines=13) @@
103
     *
104
     * @dataProvider formatProvider
105
     */
106
    public function testDocumentTemplatePath2($format)
107
    {
108
        $document = $this->getDocument(static::$router->generate('test_default', ['templateName' => 'documentTemplatePath2', '_format' => $format]), $format);
109
        static::assertNotNull($document, 'Document does not exist');
110
111
        $sheet = $document->getSheet(0);
112
        static::assertNotNull($sheet, 'Sheet does not exist');
113
114
        static::assertEquals('Hello', $sheet->getCell('A1')->getValue(), 'Unexpected value in A1');
115
        static::assertEquals('World', $sheet->getCell('B1')->getValue(), 'Unexpected value in B1');
116
        static::assertEquals('Foo', $sheet->getCell('A2')->getValue(), 'Unexpected value in A2');
117
        static::assertEquals('Bar', $sheet->getCell('B2')->getValue(), 'Unexpected value in B2');
118
    }
119
}
120