Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1067-1072 (lines=6) @@
1064
                // This is a string, so it may be a type hint, but it could
1065
                // also be a constant used as a default value.
1066
                $prevComma = false;
1067
                for ($t = $i; $t >= $opener; $t--) {
1068
                    if ($tokens[$t]['code'] === T_COMMA) {
1069
                        $prevComma = $t;
1070
                        break;
1071
                    }
1072
                }
1073
1074
                if ($prevComma !== false) {
1075
                    $nextEquals = false;
@@ 1076-1081 (lines=6) @@
1073
1074
                if ($prevComma !== false) {
1075
                    $nextEquals = false;
1076
                    for ($t = $prevComma; $t < $i; $t++) {
1077
                        if ($tokens[$t]['code'] === T_EQUAL) {
1078
                            $nextEquals = $t;
1079
                            break;
1080
                        }
1081
                    }
1082
1083
                    if ($nextEquals !== false) {
1084
                        break;