Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | function dispSeoAdminSetting() |
||
16 | { |
||
17 | $vars = Context::getRequestVars(); |
||
18 | if(!$vars->setting_section) Context::set('setting_section', 'general'); |
||
19 | |||
20 | $config = $this->getConfig(); |
||
21 | |||
22 | $db_info = Context::getDBInfo(); |
||
23 | $hostname = parse_url($db_info->default_url); |
||
24 | $hostname = $hostname['host']; |
||
25 | |||
26 | Context::set('config', $config); |
||
27 | Context::set('hostname', $hostname); |
||
28 | |||
29 | $security = new Security(); |
||
30 | $security->encodeHTML('setting_section'); |
||
31 | } |
||
32 | } |
||
34 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.