| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function init_search($type, &$search, &$error) |
||
| 41 | { |
||
| 42 | if (!class_exists($type) || !method_exists($type, 'keyword_search')) |
||
| 43 | { |
||
| 44 | $error = $this->lang->lang('NO_SUCH_SEARCH_MODULE'); |
||
| 45 | return $error; |
||
| 46 | } |
||
| 47 | |||
| 48 | $error = false; |
||
| 49 | $search = new $type($error, $this->root_path, $this->php_ext, $this->auth, $this->config, $this->db, $this->user, $this->dispatcher); |
||
| 50 | |||
| 51 | return $error; |
||
| 52 | } |
||
| 53 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths