Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Lines | 5 |
Ratio | 50 % |
Changes | 0 |
1 | <?php |
||
16 | public function sess_destroy() |
||
17 | { |
||
18 | View Code Duplication | if (is_cli() === true && ENVIRONMENT === 'testing') |
|
19 | { |
||
20 | log_message('debug', 'Session: calling session_destroy() skipped under testing.'); |
||
21 | return; |
||
22 | } |
||
23 | |||
24 | parent::sess_destroy(); |
||
25 | } |
||
26 | } |
||
27 |
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.