Conditions | 9 |
Paths | 3 |
Total Lines | 33 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function getNextPlaceholder(int|null &$position = null): string|null |
||
12 | { |
||
13 | $result = null; |
||
14 | $length = $this->length - 1; |
||
15 | |||
16 | while ($this->position < $length) { |
||
17 | $pos = $this->position++; |
||
18 | |||
19 | match ($this->sql[$pos]) { |
||
20 | ':' => ($word = $this->parseWord()) === '' |
||
21 | ? $this->skipChars(':') |
||
22 | : $result = ':' . $word, |
||
23 | '"', "'", '`' => $this->skipQuotedWithoutEscape($this->sql[$pos]), |
||
24 | '[' => $this->sql[$this->position] === '[' |
||
25 | ? $this->skipToAfterString(']]') |
||
26 | : $this->skipQuotedWithoutEscape(']'), |
||
27 | '-' => $this->sql[$this->position] === '-' |
||
28 | ? ++$this->position && $this->skipToAfterChar("\n") |
||
29 | : null, |
||
30 | '/' => $this->sql[$this->position] === '*' |
||
31 | ? ++$this->position && $this->skipToAfterString('*/') |
||
32 | : null, |
||
33 | default => null, |
||
34 | }; |
||
35 | |||
36 | if ($result !== null) { |
||
37 | $position = $pos; |
||
38 | |||
39 | return $result; |
||
40 | } |
||
41 | } |
||
42 | |||
43 | return null; |
||
44 | } |
||
46 |
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