Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1029-1034 (lines=6) @@
1026
                // This is a string, so it may be a type hint, but it could
1027
                // also be a constant used as a default value.
1028
                $prevComma = false;
1029
                for ($t = $i; $t >= $opener; $t--) {
1030
                    if ($tokens[$t]['code'] === T_COMMA) {
1031
                        $prevComma = $t;
1032
                        break;
1033
                    }
1034
                }
1035
1036
                if ($prevComma !== false) {
1037
                    $nextEquals = false;
@@ 1038-1043 (lines=6) @@
1035
1036
                if ($prevComma !== false) {
1037
                    $nextEquals = false;
1038
                    for ($t = $prevComma; $t < $i; $t++) {
1039
                        if ($tokens[$t]['code'] === T_EQUAL) {
1040
                            $nextEquals = $t;
1041
                            break;
1042
                        }
1043
                    }
1044
1045
                    if ($nextEquals !== false) {
1046
                        break;