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