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