Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1009-1014 (lines=6) @@
1006
                // This is a string, so it may be a type hint, but it could
1007
                // also be a constant used as a default value.
1008
                $prevComma = false;
1009
                for ($t = $i; $t >= $opener; $t--) {
1010
                    if ($tokens[$t]['code'] === T_COMMA) {
1011
                        $prevComma = $t;
1012
                        break;
1013
                    }
1014
                }
1015
1016
                if ($prevComma !== false) {
1017
                    $nextEquals = false;
@@ 1018-1023 (lines=6) @@
1015
1016
                if ($prevComma !== false) {
1017
                    $nextEquals = false;
1018
                    for ($t = $prevComma; $t < $i; $t++) {
1019
                        if ($tokens[$t]['code'] === T_EQUAL) {
1020
                            $nextEquals = $t;
1021
                            break;
1022
                        }
1023
                    }
1024
1025
                    if ($nextEquals !== false) {
1026
                        break;