Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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