Code Duplication    Length = 6-6 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 1492-1497 (lines=6) @@
1489
     */
1490
    private function isConditionalComment($comment): bool
1491
    {
1492
        if (\strpos($comment, '[if ') !== false) {
1493
            /** @noinspection RegExpRedundantEscape */
1494
            /** @noinspection NestedPositiveIfStatementsInspection */
1495
            if (\preg_match('/^\[if [^\]]+\]/', $comment)) {
1496
                return true;
1497
            }
1498
        }
1499
1500
        if (\strpos($comment, '[endif]') !== false) {
@@ 1500-1505 (lines=6) @@
1497
            }
1498
        }
1499
1500
        if (\strpos($comment, '[endif]') !== false) {
1501
            /** @noinspection RegExpRedundantEscape */
1502
            /** @noinspection NestedPositiveIfStatementsInspection */
1503
            if (\preg_match('/\[endif\]$/', $comment)) {
1504
                return true;
1505
            }
1506
        }
1507
1508
        return false;