| Conditions | 4 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function setBody($params = null) |
||
| 16 | { |
||
| 17 | $options = []; |
||
| 18 | if (count($params) > 2) { |
||
| 19 | foreach (array_splice($params, 2) as $name => $value) { |
||
| 20 | $options[] = "$value=$name"; |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | return parent::setBody(['query' => "SHOW THREADS " . |
||
| 25 | ((count($options)>0)?' OPTION '.implode(",", $options):'')]); |
||
| 26 | } |
||
| 28 |