| @@ 1217-1222 (lines=6) @@ | ||
| 1214 | */ |
|
| 1215 | private function isConditionalComment($comment): bool |
|
| 1216 | { |
|
| 1217 | if (strpos($comment, '[if ') !== false) { |
|
| 1218 | /** @noinspection RegExpRedundantEscape */ |
|
| 1219 | if (\preg_match('/^\[if [^\]]+\]/', $comment)) { |
|
| 1220 | return true; |
|
| 1221 | } |
|
| 1222 | } |
|
| 1223 | ||
| 1224 | if (strpos($comment, '[endif]') !== false) { |
|
| 1225 | /** @noinspection RegExpRedundantEscape */ |
|
| @@ 1224-1229 (lines=6) @@ | ||
| 1221 | } |
|
| 1222 | } |
|
| 1223 | ||
| 1224 | if (strpos($comment, '[endif]') !== false) { |
|
| 1225 | /** @noinspection RegExpRedundantEscape */ |
|
| 1226 | if (\preg_match('/\[endif\]$/', $comment)) { |
|
| 1227 | return true; |
|
| 1228 | } |
|
| 1229 | } |
|
| 1230 | ||
| 1231 | return false; |
|
| 1232 | } |
|