Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 785-790 (lines=6) @@
782
                // This is a string, so it may be a type hint, but it could
783
                // also be a constant used as a default value.
784
                $prevComma = false;
785
                for ($t = $i; $t >= $opener; $t--) {
786
                    if ($tokens[$t]['code'] === T_COMMA) {
787
                        $prevComma = $t;
788
                        break;
789
                    }
790
                }
791
792
                if ($prevComma !== false) {
793
                    $nextEquals = false;
@@ 794-799 (lines=6) @@
791
792
                if ($prevComma !== false) {
793
                    $nextEquals = false;
794
                    for ($t = $prevComma; $t < $i; $t++) {
795
                        if ($tokens[$t]['code'] === T_EQUAL) {
796
                            $nextEquals = $t;
797
                            break;
798
                        }
799
                    }
800
801
                    if ($nextEquals !== false) {
802
                        break;