Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 847-852 (lines=6) @@
844
                // This is a string, so it may be a type hint, but it could
845
                // also be a constant used as a default value.
846
                $prevComma = false;
847
                for ($t = $i; $t >= $opener; $t--) {
848
                    if ($tokens[$t]['code'] === T_COMMA) {
849
                        $prevComma = $t;
850
                        break;
851
                    }
852
                }
853
854
                if ($prevComma !== false) {
855
                    $nextEquals = false;
@@ 856-861 (lines=6) @@
853
854
                if ($prevComma !== false) {
855
                    $nextEquals = false;
856
                    for ($t = $prevComma; $t < $i; $t++) {
857
                        if ($tokens[$t]['code'] === T_EQUAL) {
858
                            $nextEquals = $t;
859
                            break;
860
                        }
861
                    }
862
863
                    if ($nextEquals !== false) {
864
                        break;