| @@ 1364-1369 (lines=6) @@ | ||
| 1361 | */ |
|
| 1362 | private function isConditionalComment($comment): bool |
|
| 1363 | { |
|
| 1364 | if (\strpos($comment, '[if ') !== false) { |
|
| 1365 | /** @noinspection RegExpRedundantEscape */ |
|
| 1366 | if (\preg_match('/^\[if [^\]]+\]/', $comment)) { |
|
| 1367 | return true; |
|
| 1368 | } |
|
| 1369 | } |
|
| 1370 | ||
| 1371 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1372 | /** @noinspection RegExpRedundantEscape */ |
|
| @@ 1371-1376 (lines=6) @@ | ||
| 1368 | } |
|
| 1369 | } |
|
| 1370 | ||
| 1371 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1372 | /** @noinspection RegExpRedundantEscape */ |
|
| 1373 | if (\preg_match('/\[endif\]$/', $comment)) { |
|
| 1374 | return true; |
|
| 1375 | } |
|
| 1376 | } |
|
| 1377 | ||
| 1378 | return false; |
|
| 1379 | } |
|