Code Duplication    Length = 6-6 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

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