| @@ 1344-1349 (lines=6) @@ | ||
| 1341 | */ |
|
| 1342 | private function isConditionalComment($comment): bool |
|
| 1343 | { |
|
| 1344 | if (\strpos($comment, '[if ') !== false) { |
|
| 1345 | /** @noinspection RegExpRedundantEscape */ |
|
| 1346 | if (\preg_match('/^\[if [^\]]+\]/', $comment)) { |
|
| 1347 | return true; |
|
| 1348 | } |
|
| 1349 | } |
|
| 1350 | ||
| 1351 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1352 | /** @noinspection RegExpRedundantEscape */ |
|
| @@ 1351-1356 (lines=6) @@ | ||
| 1348 | } |
|
| 1349 | } |
|
| 1350 | ||
| 1351 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1352 | /** @noinspection RegExpRedundantEscape */ |
|
| 1353 | if (\preg_match('/\[endif\]$/', $comment)) { |
|
| 1354 | return true; |
|
| 1355 | } |
|
| 1356 | } |
|
| 1357 | ||
| 1358 | return false; |
|
| 1359 | } |
|