Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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