original_string: private function parsePathsSettings(\DOMNode $paths) {
  
  		if(is_null($this->paths)) {
  			$this->paths = [];
  		}
  
  		foreach($paths->getElementsByTagName('path') as $path) {
  
  			$id = $path->getAttribute('id');
  			$subdir = $path->getAttribute('subdir') ?: '';
  
  			if(!$id || !$subdir) {
  				continue;
  			}
  
  			$subdir = '/' . trim($subdir, '/') . '/';
  
  			// additional attributes are currently ignored
  
  			$this->paths[$id] = ['subdir' => $subdir];
  
  		}
  
  	}
code: private function parsePathsSettings(\DOMNode $paths) {
  
  		if(is_null($this->paths)) {
  			$this->paths = [];
  		}
  
  		foreach($paths->getElementsByTagName('path') as $path) {
  
  			$id = $path->getAttribute('id');
  			$subdir = $path->getAttribute('subdir') ?: '';
  
  			if(!$id || !$subdir) {
  				continue;
  			}
  
  			$subdir = '/' . trim($subdir, '/') . '/';
  
  			// additional attributes are currently ignored
  
  			$this->paths[$id] = ['subdir' => $subdir];
  
  		}
  
  	}
code_tokens: private function parsePathsSettings ( \ DOMNode $ paths ) { if ( is_null ( $ this -> paths ) ) { $ this -> paths = [ ] ; } foreach ( $ paths -> getElementsByTagName ( 'path' ) as $ path ) { $ id = $ path -> getAttribute ( 'id' ) ; $ subdir = $ path -> getAttribute ( 'subdir' ) ? : '' ; if ( ! $ id || ! $ subdir ) { continue ; } $ subdir = '/' . trim ( $ subdir , '/' ) . '/' ; // additional attributes are currently ignored $ this -> paths [ $ id ] = [ 'subdir' => $ subdir ] ; } }
docstring: parse various path setting
  
  @param \DOMNode $paths
docstring_tokens: parse various path setting