original_string: protected function processSharedStringsItem($xmlReader, $sharedStringIndex)
      {
          $sharedStringValue = '';
  
          // NOTE: expand() will automatically decode all XML entities of the child nodes
          $siNode = $xmlReader->expand();
          $textNodes = $siNode->getElementsByTagName(self::XML_NODE_T);
  
          foreach ($textNodes as $textNode) {
              if ($this->shouldExtractTextNodeValue($textNode)) {
                  $textNodeValue = $textNode->nodeValue;
                  $shouldPreserveWhitespace = $this->shouldPreserveWhitespace($textNode);
  
                  $sharedStringValue .= ($shouldPreserveWhitespace) ? $textNodeValue : trim($textNodeValue);
              }
          }
  
          $this->cachingStrategy->addStringForIndex($sharedStringValue, $sharedStringIndex);
      }
code: protected function processSharedStringsItem($xmlReader, $sharedStringIndex)
      {
          $sharedStringValue = '';
  
          // NOTE: expand() will automatically decode all XML entities of the child nodes
          $siNode = $xmlReader->expand();
          $textNodes = $siNode->getElementsByTagName(self::XML_NODE_T);
  
          foreach ($textNodes as $textNode) {
              if ($this->shouldExtractTextNodeValue($textNode)) {
                  $textNodeValue = $textNode->nodeValue;
                  $shouldPreserveWhitespace = $this->shouldPreserveWhitespace($textNode);
  
                  $sharedStringValue .= ($shouldPreserveWhitespace) ? $textNodeValue : trim($textNodeValue);
              }
          }
  
          $this->cachingStrategy->addStringForIndex($sharedStringValue, $sharedStringIndex);
      }
code_tokens: protected function processSharedStringsItem ( $ xmlReader , $ sharedStringIndex ) { $ sharedStringValue = '' ; // NOTE: expand() will automatically decode all XML entities of the child nodes $ siNode = $ xmlReader -> expand ( ) ; $ textNodes = $ siNode -> getElementsByTagName ( self :: XML_NODE_T ) ; foreach ( $ textNodes as $ textNode ) { if ( $ this -> shouldExtractTextNodeValue ( $ textNode ) ) { $ textNodeValue = $ textNode -> nodeValue ; $ shouldPreserveWhitespace = $ this -> shouldPreserveWhitespace ( $ textNode ) ; $ sharedStringValue .= ( $ shouldPreserveWhitespace ) ? $ textNodeValue : trim ( $ textNodeValue ) ; } } $ this -> cachingStrategy -> addStringForIndex ( $ sharedStringValue , $ sharedStringIndex ) ; }
docstring: Processes the shared strings item XML node which the given XML reader is positioned on.
  
  @param \Box\Spout\Reader\Wrapper\XMLReader $xmlReader XML Reader positioned on a "<si>" node
  @param int $sharedStringIndex Index of the processed shared strings item
  @return void
docstring_tokens: Processes the shared strings item XML node which the given XML reader is positioned on .