Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
101 | public function shouldHaveAFixerDefinition() |
||
102 | { |
||
103 | $this->assertEquals( |
||
104 | new FixerDefinition( |
||
105 | 'Corrects the order of variable and typedeclaration in a @var doccomment.', |
||
106 | [ |
||
107 | new CodeSample( |
||
108 | '<?php |
||
109 | |||
110 | /** @var string $foo */ |
||
111 | ' |
||
112 | ), |
||
113 | ] |
||
114 | ), |
||
115 | $this->createFixer()->getDefinition() |
||
116 | ); |
||
117 | } |
||
118 | |||
125 |
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.