Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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