Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 7 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
12 | View Code Duplication | public function linkPurifyTest() |
|
|
|||
13 | { |
||
14 | $linkPurifier = new LinkPurifier(''); |
||
15 | $output = $linkPurifier->Purify('Lorem Ipsum <a href="http://www.google.co.in" target="_blank">http://www.google.co.in</a> lorem ipsum dummy text added for the testing purpose'); |
||
16 | $expectedOutPut = 'Lorem Ipsum lorem ipsum dummy text added for the testing purpose'; |
||
17 | $this->assertEquals($expectedOutPut, $output); |
||
18 | } |
||
19 | |||
31 |
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.