Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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