| Total Complexity | 1 |
| Total Lines | 44 |
| Duplicated Lines | 29.55 % |
| Changes | 0 | ||
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | <?php |
||
| 10 | class StaticCallingTraitTest extends TestCase |
||
|
|
|||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var SafeUrls |
||
| 14 | */ |
||
| 15 | private $safeUrls; |
||
| 16 | |||
| 17 | private $urlsToTest; |
||
| 18 | |||
| 19 | View Code Duplication | protected function setUp():void |
|
| 32 | |||
| 33 | public function testStaticCallingMethod() |
||
| 53 | } |
||
| 54 |