| @@ 1278-1283 (lines=6) @@ | ||
| 1275 | */ |
|
| 1276 | private function isConditionalComment($comment): bool |
|
| 1277 | { |
|
| 1278 | if (\strpos($comment, '[if ') !== false) { |
|
| 1279 | /** @noinspection RegExpRedundantEscape */ |
|
| 1280 | if (\preg_match('/^\[if [^\]]+\]/', $comment)) { |
|
| 1281 | return true; |
|
| 1282 | } |
|
| 1283 | } |
|
| 1284 | ||
| 1285 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1286 | /** @noinspection RegExpRedundantEscape */ |
|
| @@ 1285-1290 (lines=6) @@ | ||
| 1282 | } |
|
| 1283 | } |
|
| 1284 | ||
| 1285 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1286 | /** @noinspection RegExpRedundantEscape */ |
|
| 1287 | if (\preg_match('/\[endif\]$/', $comment)) { |
|
| 1288 | return true; |
|
| 1289 | } |
|
| 1290 | } |
|
| 1291 | ||
| 1292 | return false; |
|
| 1293 | } |
|