| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function setBody($params = null) |
||
| 16 | { |
||
| 17 | $option = ""; |
||
| 18 | if (isset($params['pattern'])) { |
||
| 19 | $option = "LIKE '".$params['pattern']."'"; |
||
| 20 | } |
||
| 21 | if (isset($params['where'])) { |
||
| 22 | $option = "WHERE variable_name='".$params['where']['variable_name']."'"; |
||
| 23 | } |
||
| 24 | return parent::setBody(['query' => "SHOW ".($params['type'] ?? '')." VARIABLES ".$option]); |
||
| 25 | } |
||
| 27 |