original_string: public function getConfig($configName, array $configPaths = array()): ConfigORM
      {
          // First determine what directories to use
          $directories = (empty($configPaths) ? $this->configPaths : $configPaths);
  
          // Determine the config name
          $configName = strtolower($configName);
          
          // If it's already loaded, return the existing object
          if (isset($this->cfg[$configName]))
          {
              return $this->cfg[$configName];
          }
  
          // Otherwise try and load a new one
          $this->cfg[$configName] = $this->loadConfigFile($configName, $directories);
          return $this->cfg[$configName];
      }
code: public function getConfig($configName, array $configPaths = array()): ConfigORM
      {
          // First determine what directories to use
          $directories = (empty($configPaths) ? $this->configPaths : $configPaths);
  
          // Determine the config name
          $configName = strtolower($configName);
          
          // If it's already loaded, return the existing object
          if (isset($this->cfg[$configName]))
          {
              return $this->cfg[$configName];
          }
  
          // Otherwise try and load a new one
          $this->cfg[$configName] = $this->loadConfigFile($configName, $directories);
          return $this->cfg[$configName];
      }
code_tokens: public function getConfig ( $ configName , array $ configPaths = array ( ) ) : ConfigORM { // First determine what directories to use $ directories = ( empty ( $ configPaths ) ? $ this -> configPaths : $ configPaths ) ; // Determine the config name $ configName = strtolower ( $ configName ) ; // If it's already loaded, return the existing object if ( isset ( $ this -> cfg [ $ configName ] ) ) { return $ this -> cfg [ $ configName ] ; } // Otherwise try and load a new one $ this -> cfg [ $ configName ] = $ this -> loadConfigFile ( $ configName , $ directories ) ; return $ this -> cfg [ $ configName ] ; }
docstring: Retrieve a config file object
  
  @param string $configName  Name of the config file. Eg. 'main'
  @param array  $configPaths Optional array of where to look for the config files
  @return  ConfigORM of the config file. Allows for easy reading and editing of the file
  @throws  ConfigException
docstring_tokens: Retrieve a config file object