| @@ 1412-1417 (lines=6) @@ | ||
| 1409 | */ |
|
| 1410 | private function isConditionalComment($comment): bool |
|
| 1411 | { |
|
| 1412 | if (\strpos($comment, '[if ') !== false) { |
|
| 1413 | /** @noinspection RegExpRedundantEscape */ |
|
| 1414 | /** @noinspection NestedPositiveIfStatementsInspection */ |
|
| 1415 | if (\preg_match('/^\[if [^\]]+\]/', $comment)) { |
|
| 1416 | return true; |
|
| 1417 | } |
|
| 1418 | } |
|
| 1419 | ||
| 1420 | if (\strpos($comment, '[endif]') !== false) { |
|
| @@ 1420-1425 (lines=6) @@ | ||
| 1417 | } |
|
| 1418 | } |
|
| 1419 | ||
| 1420 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1421 | /** @noinspection RegExpRedundantEscape */ |
|
| 1422 | /** @noinspection NestedPositiveIfStatementsInspection */ |
|
| 1423 | if (\preg_match('/\[endif\]$/', $comment)) { |
|
| 1424 | return true; |
|
| 1425 | } |
|
| 1426 | } |
|
| 1427 | ||
| 1428 | return false; |
|