original_string: protected function whitespaceBetweenInlineElements($contents, PlaceholderContainer $placeholderContainer)
      {
          $elementsRegex = $this->getInlineElementsRegex();
  
          return preg_replace_callback(
              '/
                  (
                      <('.$elementsRegex.')       # Match the start tag and capture it
                      (?:(?!<\/\2>).*)            # Match everything without the end tag
                      <\/\2>                      # Match the captured elements end tag
                  )
                  \s+                             # Match minimal 1 whitespace between the elements
                  <('.$elementsRegex.')           # Match the start of the next inline element
              /xi',
              function ($match) use ($placeholderContainer) {
                  // Where going to respect one space between the inline elements.
                  $placeholder = $placeholderContainer->createPlaceholder(' ');
  
                  return $match[1].$placeholder.'<'.$match[3];
          }, $contents);
      }
code: protected function whitespaceBetweenInlineElements($contents, PlaceholderContainer $placeholderContainer)
      {
          $elementsRegex = $this->getInlineElementsRegex();
  
          return preg_replace_callback(
              '/
                  (
                      <('.$elementsRegex.')       # Match the start tag and capture it
                      (?:(?!<\/\2>).*)            # Match everything without the end tag
                      <\/\2>                      # Match the captured elements end tag
                  )
                  \s+                             # Match minimal 1 whitespace between the elements
                  <('.$elementsRegex.')           # Match the start of the next inline element
              /xi',
              function ($match) use ($placeholderContainer) {
                  // Where going to respect one space between the inline elements.
                  $placeholder = $placeholderContainer->createPlaceholder(' ');
  
                  return $match[1].$placeholder.'<'.$match[3];
          }, $contents);
      }
code_tokens: protected function whitespaceBetweenInlineElements ( $ contents , PlaceholderContainer $ placeholderContainer ) { $ elementsRegex = $ this -> getInlineElementsRegex ( ) ; return preg_replace_callback ( '/
                  (
                      <(' . $ elementsRegex . ')       # Match the start tag and capture it
                      (?:(?!<\/\2>).*)            # Match everything without the end tag
                      <\/\2>                      # Match the captured elements end tag
                  )
                  \s+                             # Match minimal 1 whitespace between the elements
                  <(' . $ elementsRegex . ')           # Match the start of the next inline element
              /xi' , function ( $ match ) use ( $ placeholderContainer ) { // Where going to respect one space between the inline elements. $ placeholder = $ placeholderContainer -> createPlaceholder ( ' ' ) ; return $ match [ 1 ] . $ placeholder . '<' . $ match [ 3 ] ; } , $ contents ) ; }
docstring: Whitespaces between inline html elements must be replaced with a placeholder because
  a browser is showing that whitespace.
  
  @param string $contents
  @param \ArjanSchouten\HtmlMinifier\PlaceholderContainer $placeholderContainer
  
  @return string
docstring_tokens: Whitespaces between inline html elements must be replaced with a placeholder because a browser is showing that whitespace .