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  | 
            ||
| 16 | class RedirectTest extends XigenUnit  | 
            ||
| 17 | { | 
            ||
| 18 | protected $ComodoDecodeCSR;  | 
            ||
| 19 | |||
| 20 | public function setUp()  | 
            ||
| 24 | |||
| 25 | View Code Duplication | public function test301Redirect()  | 
            |
| 33 | |||
| 34 | View Code Duplication | public function test302Redirect()  | 
            |
| 42 | }  | 
            ||
| 43 |