Code Duplication    Length = 6-6 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 1499-1504 (lines=6) @@
1496
     */
1497
    private function isConditionalComment($comment): bool
1498
    {
1499
        if (\strpos($comment, '[if ') !== false) {
1500
            /** @noinspection RegExpRedundantEscape */
1501
            /** @noinspection NestedPositiveIfStatementsInspection */
1502
            if (\preg_match('/^\[if [^\]]+\]/', $comment)) {
1503
                return true;
1504
            }
1505
        }
1506
1507
        if (\strpos($comment, '[endif]') !== false) {
@@ 1507-1512 (lines=6) @@
1504
            }
1505
        }
1506
1507
        if (\strpos($comment, '[endif]') !== false) {
1508
            /** @noinspection RegExpRedundantEscape */
1509
            /** @noinspection NestedPositiveIfStatementsInspection */
1510
            if (\preg_match('/\[endif\]$/', $comment)) {
1511
                return true;
1512
            }
1513
        }
1514
1515
        return false;