original_string: public function load($templatePath, $userConfigurationPath, $class = 'phpDocumentor\Configuration')
      {
          $userConfigFilePath = $this->fetchUserConfigFileFromCommandLineOptions();
  
          if ($this->isValidFile($userConfigFilePath)) {
              chdir(dirname($userConfigFilePath));
          } else {
              $userConfigFilePath = null;
          }
  
          return $this->createConfigurationObject($templatePath, $userConfigurationPath, $userConfigFilePath, $class);
      }
code: public function load($templatePath, $userConfigurationPath, $class = 'phpDocumentor\Configuration')
      {
          $userConfigFilePath = $this->fetchUserConfigFileFromCommandLineOptions();
  
          if ($this->isValidFile($userConfigFilePath)) {
              chdir(dirname($userConfigFilePath));
          } else {
              $userConfigFilePath = null;
          }
  
          return $this->createConfigurationObject($templatePath, $userConfigurationPath, $userConfigFilePath, $class);
      }
code_tokens: public function load ( $ templatePath , $ userConfigurationPath , $ class = 'phpDocumentor\Configuration' ) { $ userConfigFilePath = $ this -> fetchUserConfigFileFromCommandLineOptions ( ) ; if ( $ this -> isValidFile ( $ userConfigFilePath ) ) { chdir ( dirname ( $ userConfigFilePath ) ) ; } else { $ userConfigFilePath = null ; } return $ this -> createConfigurationObject ( $ templatePath , $ userConfigurationPath , $ userConfigFilePath , $ class ) ; }
docstring: Loads the configuration from the provided paths and returns a populated configuration object.
  
  @param string $templatePath          Path to configuration file containing default settings.
  @param string $userConfigurationPath Path to a file containing user overrides.
  @param string $class                 The class to instantiate and populate with these options.
  
  @return object
docstring_tokens: Loads the configuration from the provided paths and returns a populated configuration object .