Conditions | 9 |
Paths | 9 |
Total Lines | 25 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 9.5338 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | 203 | protected function internalExecute(?string $rawSql): void |
|
39 | { |
||
40 | 203 | $attempt = 0; |
|
41 | |||
42 | 203 | while (true) { |
|
43 | try { |
||
44 | if ( |
||
45 | 203 | ++$attempt === 1 |
|
46 | 203 | && $this->isolationLevel !== null |
|
47 | 203 | && $this->db->getTransaction() === null |
|
48 | ) { |
||
49 | $this->db->transaction( |
||
50 | fn (string $rawSql) => $this->internalExecute($rawSql), |
||
51 | $this->isolationLevel |
||
52 | ); |
||
53 | } else { |
||
54 | 203 | $this->pdoStatement?->execute(); |
|
55 | } |
||
56 | 202 | break; |
|
57 | 5 | } catch (PDOException $e) { |
|
58 | 5 | $rawSql = $rawSql ?: $this->getRawSql(); |
|
59 | 5 | $e = (new ConvertException($e, $rawSql))->run(); |
|
60 | |||
61 | 5 | if ($this->retryHandler === null || !($this->retryHandler)($e, $attempt)) { |
|
62 | 5 | throw $e; |
|
63 | } |
||
68 |
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