Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 884-889 (lines=6) @@
881
                // This is a string, so it may be a type hint, but it could
882
                // also be a constant used as a default value.
883
                $prevComma = false;
884
                for ($t = $i; $t >= $opener; $t--) {
885
                    if ($tokens[$t]['code'] === T_COMMA) {
886
                        $prevComma = $t;
887
                        break;
888
                    }
889
                }
890
891
                if ($prevComma !== false) {
892
                    $nextEquals = false;
@@ 893-898 (lines=6) @@
890
891
                if ($prevComma !== false) {
892
                    $nextEquals = false;
893
                    for ($t = $prevComma; $t < $i; $t++) {
894
                        if ($tokens[$t]['code'] === T_EQUAL) {
895
                            $nextEquals = $t;
896
                            break;
897
                        }
898
                    }
899
900
                    if ($nextEquals !== false) {
901
                        break;