| Conditions | 6 |
| Paths | 6 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | private function detectOperator(string $line): ?string |
||
| 31 | { |
||
| 32 | if (strpos($line, '=<') !== false) { |
||
| 33 | return '=<'; |
||
| 34 | } |
||
| 35 | if (strpos($line, ':=') !== false) { |
||
| 36 | return ':='; |
||
| 37 | } |
||
| 38 | if (strpos($line, '=') !== false) { |
||
| 39 | return '='; |
||
| 40 | } |
||
| 41 | if (strpos($line, '<') !== false) { |
||
| 42 | return '<'; |
||
| 43 | } |
||
| 44 | if (strpos($line, '>') !== false) { |
||
| 45 | return '>'; |
||
| 46 | } |
||
| 47 | return null; |
||
| 48 | } |
||
| 50 |