Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 939-944 (lines=6) @@
936
                // This is a string, so it may be a type hint, but it could
937
                // also be a constant used as a default value.
938
                $prevComma = false;
939
                for ($t = $i; $t >= $opener; $t--) {
940
                    if ($tokens[$t]['code'] === T_COMMA) {
941
                        $prevComma = $t;
942
                        break;
943
                    }
944
                }
945
946
                if ($prevComma !== false) {
947
                    $nextEquals = false;
@@ 948-953 (lines=6) @@
945
946
                if ($prevComma !== false) {
947
                    $nextEquals = false;
948
                    for ($t = $prevComma; $t < $i; $t++) {
949
                        if ($tokens[$t]['code'] === T_EQUAL) {
950
                            $nextEquals = $t;
951
                            break;
952
                        }
953
                    }
954
955
                    if ($nextEquals !== false) {
956
                        break;