| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 45 | 1 | public function search($q = null) |
|
| 46 | { |
||
| 47 | $params = [ |
||
| 48 | 1 | 'index' => strtolower($this->manganel->index), |
|
| 49 | 1 | 'type' => CollectionNamer::nameCollection($this->model), |
|
| 50 | 'body' => [ |
||
| 51 | 'query' => [ |
||
| 52 | 'query_string' => [ |
||
| 53 | 'query' => $q |
||
| 54 | 1 | ] |
|
| 55 | 1 | ] |
|
| 56 | 1 | ] |
|
| 57 | 1 | ]; |
|
| 58 | |||
| 59 | 1 | return $this->manganel->getClient()->search($params); |
|
| 60 | } |
||
| 61 | |||
| 74 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.