Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | function __construct($session_id = 'notreallyauniquesessionid') |
||
10 | { |
||
11 | $this->intranet = new Stub_Intranet; |
||
12 | $this->user = new Stub_User; |
||
13 | $this->setting = new Stub_Setting; |
||
14 | $this->setting->set('intranet', 'contact.login_url', 'http://localhost/'); |
||
15 | $this->setting->set('intranet', 'webshop.confirmation_text', 'sometext'); |
||
16 | $this->setting->set('intranet', 'webshop.show_online', true); |
||
17 | $this->setting->set('intranet', 'contact.login_email_text', 'sometext'); |
||
18 | $this->setting->set('intranet', 'cms.stylesheet.site', 'something'); |
||
19 | $this->session_id = $session_id; |
||
20 | } |
||
21 | /* |
||
53 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.