| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function search($searchstring, $args) { |
||
|
|
|||
| 22 | |||
| 23 | if (!defined('FRONT_END_SEARCH') || !FRONT_END_SEARCH) { |
||
| 24 | throw new \Exception('FRONT_END_SEARCH is not defined or is false.'); |
||
| 25 | } |
||
| 26 | |||
| 27 | // throw exceptions rather than emit PAGE->error |
||
| 28 | $args['exceptions'] = true; |
||
| 29 | $list = new \HANSARDLIST(); |
||
| 30 | return $list->display('search', $args, 'none'); |
||
| 31 | |||
| 35 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.