Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1049-1054 (lines=6) @@
1046
                // This is a string, so it may be a type hint, but it could
1047
                // also be a constant used as a default value.
1048
                $prevComma = false;
1049
                for ($t = $i; $t >= $opener; $t--) {
1050
                    if ($tokens[$t]['code'] === T_COMMA) {
1051
                        $prevComma = $t;
1052
                        break;
1053
                    }
1054
                }
1055
1056
                if ($prevComma !== false) {
1057
                    $nextEquals = false;
@@ 1058-1063 (lines=6) @@
1055
1056
                if ($prevComma !== false) {
1057
                    $nextEquals = false;
1058
                    for ($t = $prevComma; $t < $i; $t++) {
1059
                        if ($tokens[$t]['code'] === T_EQUAL) {
1060
                            $nextEquals = $t;
1061
                            break;
1062
                        }
1063
                    }
1064
1065
                    if ($nextEquals !== false) {
1066
                        break;