| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 31 | function smarty_compiler_xoAppUrl($params, Smarty $smarty)  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 32 | { | 
            ||
| 33 | global $xoops;  | 
            ||
| 34 | $arg = reset($params);  | 
            ||
| 35 | $url = trim($arg, " '\"\t\n\r\0\x0B");  | 
            ||
| 36 | |||
| 37 |     if (strpos($url, '/') === 0) { | 
            ||
| 38 | $url = 'www' . $url;  | 
            ||
| 39 | }  | 
            ||
| 40 | return "<?php echo '" . addslashes(htmlspecialchars($xoops->url($url))) . "'; ?>";  | 
            ||
| 41 | }  | 
            ||
| 42 | 
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.