| @@ 1511-1516 (lines=6) @@ | ||
| 1508 | */ |
|
| 1509 | private function isConditionalComment($comment): bool |
|
| 1510 | { |
|
| 1511 | if (\strpos($comment, '[if ') !== false) { |
|
| 1512 | /** @noinspection RegExpRedundantEscape */ |
|
| 1513 | /** @noinspection NestedPositiveIfStatementsInspection */ |
|
| 1514 | if (\preg_match('/^\[if [^\]]+\]/', $comment)) { |
|
| 1515 | return true; |
|
| 1516 | } |
|
| 1517 | } |
|
| 1518 | ||
| 1519 | if (\strpos($comment, '[endif]') !== false) { |
|
| @@ 1519-1524 (lines=6) @@ | ||
| 1516 | } |
|
| 1517 | } |
|
| 1518 | ||
| 1519 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1520 | /** @noinspection RegExpRedundantEscape */ |
|
| 1521 | /** @noinspection NestedPositiveIfStatementsInspection */ |
|
| 1522 | if (\preg_match('/\[endif\]$/', $comment)) { |
|
| 1523 | return true; |
|
| 1524 | } |
|
| 1525 | } |
|
| 1526 | ||
| 1527 | return false; |
|