Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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