| @@ 1241-1246 (lines=6) @@ | ||
| 1238 | */ |
|
| 1239 | private function isConditionalComment($comment): bool |
|
| 1240 | { |
|
| 1241 | if (\strpos($comment, '[if ') !== false) { |
|
| 1242 | /** @noinspection RegExpRedundantEscape */ |
|
| 1243 | if (\preg_match('/^\[if [^\]]+\]/', $comment)) { |
|
| 1244 | return true; |
|
| 1245 | } |
|
| 1246 | } |
|
| 1247 | ||
| 1248 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1249 | /** @noinspection RegExpRedundantEscape */ |
|
| @@ 1248-1253 (lines=6) @@ | ||
| 1245 | } |
|
| 1246 | } |
|
| 1247 | ||
| 1248 | if (\strpos($comment, '[endif]') !== false) { |
|
| 1249 | /** @noinspection RegExpRedundantEscape */ |
|
| 1250 | if (\preg_match('/\[endif\]$/', $comment)) { |
|
| 1251 | return true; |
|
| 1252 | } |
|
| 1253 | } |
|
| 1254 | ||
| 1255 | return false; |
|
| 1256 | } |
|