| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | private static function cIdPregFormatPart(): string |
||
| 53 | { |
||
| 54 | return strtr('(::head::)\d{10}', [ |
||
| 55 | '::head::' => implode('|', [ |
||
| 56 | '0[012468]', |
||
| 57 | '1[0124579]', |
||
| 58 | '2[024-7]', |
||
| 59 | '3[013-8]', |
||
| 60 | '4[0245689]', |
||
| 61 | '5[12468]', |
||
| 62 | '6[024678]', |
||
| 63 | '7[024579]', |
||
| 64 | '8[0234679]', |
||
| 65 | '9[1-6]', |
||
| 66 | ]), |
||
| 67 | ]); |
||
| 68 | } |
||
| 69 | } |
||
| 70 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.