Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 14 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | View Code Duplication | public function testGetOutput() |
|
|
|||
18 | { |
||
19 | $expected = [ |
||
20 | 'src/PhpStanLoader.php' => [ |
||
21 | 45 => 'Access to an undefined property', |
||
22 | 51 => 'Access to an undefined property', |
||
23 | ], |
||
24 | 'src/PhpCsLoader.php' => [ |
||
25 | 71 => 'Parameter $message of method', |
||
26 | ], |
||
27 | ]; |
||
28 | |||
29 | $this->assertSame($expected, $this->stan->getLines()); |
||
30 | } |
||
31 | } |
||
32 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.