original_string: protected function getDocumentationDirectory($rootRelative = false)
      {
          $reflectionObject = new \ReflectionObject($this);
          $componentFile    = $reflectionObject->getFileName();
          $docDirectory     = dirname($componentFile).DIRECTORY_SEPARATOR.$this->basename;
  
          return $rootRelative ? substr($docDirectory, strlen(PATH_site) - 1) : $docDirectory;
      }
code: protected function getDocumentationDirectory($rootRelative = false)
      {
          $reflectionObject = new \ReflectionObject($this);
          $componentFile    = $reflectionObject->getFileName();
          $docDirectory     = dirname($componentFile).DIRECTORY_SEPARATOR.$this->basename;
  
          return $rootRelative ? substr($docDirectory, strlen(PATH_site) - 1) : $docDirectory;
      }
code_tokens: protected function getDocumentationDirectory ( $ rootRelative = false ) { $ reflectionObject = new \ ReflectionObject ( $ this ) ; $ componentFile = $ reflectionObject -> getFileName ( ) ; $ docDirectory = dirname ( $ componentFile ) . DIRECTORY_SEPARATOR . $ this -> basename ; return $ rootRelative ? substr ( $ docDirectory , strlen ( PATH_site ) - 1 ) : $ docDirectory ; }
docstring: Return the documentation directory for this component
  
  @param bool $rootRelative Return a root relative path
  
  @return string Documentation directory
docstring_tokens: Return the documentation directory for this component