Code Duplication    Length = 4-4 lines in 2 locations

Spyc.php 2 locations

@@ 730-733 (lines=4) @@
727
    do {
728
729
    // Check for sequences
730
    while (preg_match('/\[([^{}\[\]]+)\]/U',$inline,$matchseqs)) {
731
      $seqs[] = $matchseqs[0];
732
      $inline = preg_replace('/\[([^{}\[\]]+)\]/U', ('YAMLSeq' . (count($seqs) - 1) . 's'), $inline, 1);
733
    }
734
735
    // Check for mappings
736
    while (preg_match('/{([^\[\]{}]+)}/U',$inline,$matchmaps)) {
@@ 736-739 (lines=4) @@
733
    }
734
735
    // Check for mappings
736
    while (preg_match('/{([^\[\]{}]+)}/U',$inline,$matchmaps)) {
737
      $maps[] = $matchmaps[0];
738
      $inline = preg_replace('/{([^\[\]{}]+)}/U', ('YAMLMap' . (count($maps) - 1) . 's'), $inline, 1);
739
    }
740
741
    if ($i++ >= 10) break;
742