| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | 2 | public function execute($query = null, array $params = []) : object |
|
| 43 | { |
||
| 44 | // When using one argument and its array, assume its $params |
||
| 45 | 2 | if (is_array($query)) { |
|
| 46 | $params = $query; |
||
| 47 | $query = null; |
||
| 48 | } |
||
| 49 | |||
| 50 | 2 | if (!$query) { |
|
| 51 | 2 | $query = $this->getSQL(); |
|
| 52 | } |
||
| 53 | |||
| 54 | 2 | return parent::execute($query, $params); |
|
|
|
|||
| 55 | } |
||
| 57 |