Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | 12 | public function query($query) |
|
25 | { |
||
26 | $options = [ |
||
27 | 12 | "auth" => [$this->getOptions()->getUsername(), $this->getOptions()->getPassword()], |
|
28 | 'query' => [ |
||
29 | 12 | "q" => $query, |
|
30 | 12 | "db" => $this->getOptions()->getDatabase(), |
|
31 | ] |
||
32 | ]; |
||
33 | |||
34 | 12 | return $this->get($options); |
|
35 | } |
||
36 | |||
62 |