Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 806-811 (lines=6) @@
803
                // This is a string, so it may be a type hint, but it could
804
                // also be a constant used as a default value.
805
                $prevComma = false;
806
                for ($t = $i; $t >= $opener; $t--) {
807
                    if ($tokens[$t]['code'] === T_COMMA) {
808
                        $prevComma = $t;
809
                        break;
810
                    }
811
                }
812
813
                if ($prevComma !== false) {
814
                    $nextEquals = false;
@@ 815-820 (lines=6) @@
812
813
                if ($prevComma !== false) {
814
                    $nextEquals = false;
815
                    for ($t = $prevComma; $t < $i; $t++) {
816
                        if ($tokens[$t]['code'] === T_EQUAL) {
817
                            $nextEquals = $t;
818
                            break;
819
                        }
820
                    }
821
822
                    if ($nextEquals !== false) {
823
                        break;