original_string: private function dumpChildren($dumper, $parentCursor, &$refs, $children, $hashCut, $hashType, $dumpKeys)
      {
          $cursor = clone $parentCursor;
          ++$cursor->depth;
          $cursor->hashType = $hashType;
          $cursor->hashIndex = 0;
          $cursor->hashLength = \count($children);
          $cursor->hashCut = $hashCut;
          foreach ($children as $key => $child) {
              $cursor->hashKeyIsBinary = isset($key[0]) && !preg_match('//u', $key);
              $cursor->hashKey = $dumpKeys ? $key : null;
              $this->dumpItem($dumper, $cursor, $refs, $child);
              if (++$cursor->hashIndex === $this->maxItemsPerDepth || $cursor->stop) {
                  $parentCursor->stop = true;
  
                  return $hashCut >= 0 ? $hashCut + $cursor->hashLength - $cursor->hashIndex : $hashCut;
              }
          }
  
          return $hashCut;
      }
code: private function dumpChildren($dumper, $parentCursor, &$refs, $children, $hashCut, $hashType, $dumpKeys)
      {
          $cursor = clone $parentCursor;
          ++$cursor->depth;
          $cursor->hashType = $hashType;
          $cursor->hashIndex = 0;
          $cursor->hashLength = \count($children);
          $cursor->hashCut = $hashCut;
          foreach ($children as $key => $child) {
              $cursor->hashKeyIsBinary = isset($key[0]) && !preg_match('//u', $key);
              $cursor->hashKey = $dumpKeys ? $key : null;
              $this->dumpItem($dumper, $cursor, $refs, $child);
              if (++$cursor->hashIndex === $this->maxItemsPerDepth || $cursor->stop) {
                  $parentCursor->stop = true;
  
                  return $hashCut >= 0 ? $hashCut + $cursor->hashLength - $cursor->hashIndex : $hashCut;
              }
          }
  
          return $hashCut;
      }
code_tokens: private function dumpChildren ( $ dumper , $ parentCursor , & $ refs , $ children , $ hashCut , $ hashType , $ dumpKeys ) { $ cursor = clone $ parentCursor ; ++ $ cursor -> depth ; $ cursor -> hashType = $ hashType ; $ cursor -> hashIndex = 0 ; $ cursor -> hashLength = \ count ( $ children ) ; $ cursor -> hashCut = $ hashCut ; foreach ( $ children as $ key => $ child ) { $ cursor -> hashKeyIsBinary = isset ( $ key [ 0 ] ) && ! preg_match ( '//u' , $ key ) ; $ cursor -> hashKey = $ dumpKeys ? $ key : null ; $ this -> dumpItem ( $ dumper , $ cursor , $ refs , $ child ) ; if ( ++ $ cursor -> hashIndex === $ this -> maxItemsPerDepth || $ cursor -> stop ) { $ parentCursor -> stop = true ; return $ hashCut >= 0 ? $ hashCut + $ cursor -> hashLength - $ cursor -> hashIndex : $ hashCut ; } } return $ hashCut ; }
docstring: Dumps children of hash structures.
  
  @param DumperInterface $dumper
  @param Cursor          $parentCursor The cursor of the parent hash
  @param array           &$refs        A map of all references discovered while dumping
  @param array           $children     The children to dump
  @param int             $hashCut      The number of items removed from the original hash
  @param string          $hashType     A Cursor::HASH_* const
  @param bool            $dumpKeys     Whether keys should be dumped or not
  
  @return int The final number of removed items
docstring_tokens: Dumps children of hash structures .