Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 996-1001 (lines=6) @@
993
                // This is a string, so it may be a type hint, but it could
994
                // also be a constant used as a default value.
995
                $prevComma = false;
996
                for ($t = $i; $t >= $opener; $t--) {
997
                    if ($tokens[$t]['code'] === T_COMMA) {
998
                        $prevComma = $t;
999
                        break;
1000
                    }
1001
                }
1002
1003
                if ($prevComma !== false) {
1004
                    $nextEquals = false;
@@ 1005-1010 (lines=6) @@
1002
1003
                if ($prevComma !== false) {
1004
                    $nextEquals = false;
1005
                    for ($t = $prevComma; $t < $i; $t++) {
1006
                        if ($tokens[$t]['code'] === T_EQUAL) {
1007
                            $nextEquals = $t;
1008
                            break;
1009
                        }
1010
                    }
1011
1012
                    if ($nextEquals !== false) {
1013
                        break;