Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1111-1116 (lines=6) @@
1108
                // This is a string, so it may be a type hint, but it could
1109
                // also be a constant used as a default value.
1110
                $prevComma = false;
1111
                for ($t = $i; $t >= $opener; $t--) {
1112
                    if ($tokens[$t]['code'] === T_COMMA) {
1113
                        $prevComma = $t;
1114
                        break;
1115
                    }
1116
                }
1117
1118
                if ($prevComma !== false) {
1119
                    $nextEquals = false;
@@ 1120-1125 (lines=6) @@
1117
1118
                if ($prevComma !== false) {
1119
                    $nextEquals = false;
1120
                    for ($t = $prevComma; $t < $i; $t++) {
1121
                        if ($tokens[$t]['code'] === T_EQUAL) {
1122
                            $nextEquals = $t;
1123
                            break;
1124
                        }
1125
                    }
1126
1127
                    if ($nextEquals !== false) {
1128
                        break;