Code Duplication    Length = 6-6 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 1358-1363 (lines=6) @@
1355
     */
1356
    private function isConditionalComment($comment): bool
1357
    {
1358
        if (\strpos($comment, '[if ') !== false) {
1359
            /** @noinspection RegExpRedundantEscape */
1360
            if (\preg_match('/^\[if [^\]]+\]/', $comment)) {
1361
                return true;
1362
            }
1363
        }
1364
1365
        if (\strpos($comment, '[endif]') !== false) {
1366
            /** @noinspection RegExpRedundantEscape */
@@ 1365-1370 (lines=6) @@
1362
            }
1363
        }
1364
1365
        if (\strpos($comment, '[endif]') !== false) {
1366
            /** @noinspection RegExpRedundantEscape */
1367
            if (\preg_match('/\[endif\]$/', $comment)) {
1368
                return true;
1369
            }
1370
        }
1371
1372
        return false;
1373
    }