| 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 |
||
| 35 | 185 | protected function internalExecute(?string $rawSql): void |
|
| 36 | { |
||
| 37 | 185 | $attempt = 0; |
|
| 38 | |||
| 39 | 185 | while (true) { |
|
| 40 | try { |
||
| 41 | if ( |
||
| 42 | 185 | ++$attempt === 1 |
|
| 43 | 185 | && $this->isolationLevel !== null |
|
| 44 | 185 | && $this->db->getTransaction() === null |
|
| 45 | ) { |
||
| 46 | $this->db->transaction( |
||
| 47 | fn (?string $rawSql): ?string => $this->internalExecute($rawSql), |
||
| 48 | $this->isolationLevel |
||
| 49 | ); |
||
| 50 | } else { |
||
| 51 | 185 | $this->pdoStatement?->execute(); |
|
| 52 | } |
||
| 53 | 185 | break; |
|
| 54 | 7 | } catch (\Exception $e) { |
|
| 55 | 7 | $rawSql = $rawSql ?: $this->getRawSql(); |
|
| 56 | 7 | $e = (new ConvertException($e, $rawSql))->run(); |
|
| 57 | |||
| 58 | 7 | if ($this->retryHandler === null || !($this->retryHandler)($e, $attempt)) { |
|
| 59 | 7 | 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