Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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