original_string: private function parseDefaultsConfig(\DOMElement $element, $path)
      {
          if ($this->isElementValueNull($element)) {
              return;
          }
  
          // Check for existing element nodes in the default element. There can
          // only be a single element inside a default element. So this element
          // (if one was found) can safely be returned.
          foreach ($element->childNodes as $child) {
              if (!$child instanceof \DOMElement) {
                  continue;
              }
  
              if (self::NAMESPACE_URI !== $child->namespaceURI) {
                  continue;
              }
  
              return $this->parseDefaultNode($child, $path);
          }
  
          // If the default element doesn't contain a nested "bool", "int", "float",
          // "string", "list", or "map" element, the element contents will be treated
          // as the string value of the associated default option.
          return trim($element->textContent);
      }
code: private function parseDefaultsConfig(\DOMElement $element, $path)
      {
          if ($this->isElementValueNull($element)) {
              return;
          }
  
          // Check for existing element nodes in the default element. There can
          // only be a single element inside a default element. So this element
          // (if one was found) can safely be returned.
          foreach ($element->childNodes as $child) {
              if (!$child instanceof \DOMElement) {
                  continue;
              }
  
              if (self::NAMESPACE_URI !== $child->namespaceURI) {
                  continue;
              }
  
              return $this->parseDefaultNode($child, $path);
          }
  
          // If the default element doesn't contain a nested "bool", "int", "float",
          // "string", "list", or "map" element, the element contents will be treated
          // as the string value of the associated default option.
          return trim($element->textContent);
      }
code_tokens: private function parseDefaultsConfig ( \ DOMElement $ element , $ path ) { if ( $ this -> isElementValueNull ( $ element ) ) { return ; } // Check for existing element nodes in the default element. There can // only be a single element inside a default element. So this element // (if one was found) can safely be returned. foreach ( $ element -> childNodes as $ child ) { if ( ! $ child instanceof \ DOMElement ) { continue ; } if ( self :: NAMESPACE_URI !== $ child -> namespaceURI ) { continue ; } return $ this -> parseDefaultNode ( $ child , $ path ) ; } // If the default element doesn't contain a nested "bool", "int", "float", // "string", "list", or "map" element, the element contents will be treated // as the string value of the associated default option. return trim ( $ element -> textContent ) ; }
docstring: Parses the "default" elements.
  
  @param \DOMElement $element The "default" element to parse
  @param string      $path    Full path of the XML file being processed
  
  @return array|bool|float|int|string|null The parsed value of the "default" element
docstring_tokens: Parses the default elements .