Code Duplication    Length = 6-6 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

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