| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 1 | public function create(array $data) : int |
|
| 26 | { |
||
| 27 | 1 | $conn = $this->db(); |
|
| 28 | 1 | $sql = sprintf( |
|
| 29 | 1 | "INSERT INTO %s (%s) VALUES (:name)", |
|
| 30 | 1 | _DOMAIN::table(), |
|
| 31 | 1 | _DOMAIN::NAME |
|
| 32 | 1 | ); |
|
| 33 | 1 | $stmt = $conn->prepare($sql); |
|
| 34 | 1 | $stmt->bindParam(':name', $data[_DOMAIN::NAME]); |
|
| 35 | 1 | $stmt->execute(); |
|
| 36 | 1 | return (int) $conn->lastInsertId(); |
|
| 37 | } |
||
| 39 | } |
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