| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function execute($sql, array $parameters, array $types) |
||
| 37 | { |
||
| 38 | $connection = $this->model->getConnection(); |
||
| 39 | |||
| 40 | $type = (string) strtolower(substr($sql, 0, 6)); |
||
| 41 | |||
| 42 | $result = $connection->$type($sql, $parameters); |
||
| 43 | |||
| 44 | if (is_array($result) === false) |
||
| 45 | { |
||
| 46 | return $result; |
||
| 47 | } |
||
| 48 | |||
| 49 | return $this->model->hydrate($result); |
||
| 50 | } |
||
| 63 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths