original_string: public function read($sConfigFile)
      {
          $sExt = pathinfo($sConfigFile, PATHINFO_EXTENSION);
          switch($sExt)
          {
          case 'php':
              $aConfigOptions = Php::read($sConfigFile);
              break;
          case 'yaml':
          case 'yml':
              $aConfigOptions = Yaml::read($sConfigFile);
              break;
          case 'json':
              $aConfigOptions = Json::read($sConfigFile);
              break;
          default:
              $sErrorMsg = jaxon_trans('config.errors.file.extension', array('path' => $sConfigFile));
              throw new \Jaxon\Config\Exception\File($sErrorMsg);
          }
          return $aConfigOptions;
      }
code: public function read($sConfigFile)
      {
          $sExt = pathinfo($sConfigFile, PATHINFO_EXTENSION);
          switch($sExt)
          {
          case 'php':
              $aConfigOptions = Php::read($sConfigFile);
              break;
          case 'yaml':
          case 'yml':
              $aConfigOptions = Yaml::read($sConfigFile);
              break;
          case 'json':
              $aConfigOptions = Json::read($sConfigFile);
              break;
          default:
              $sErrorMsg = jaxon_trans('config.errors.file.extension', array('path' => $sConfigFile));
              throw new \Jaxon\Config\Exception\File($sErrorMsg);
          }
          return $aConfigOptions;
      }
code_tokens: public function read ( $ sConfigFile ) { $ sExt = pathinfo ( $ sConfigFile , PATHINFO_EXTENSION ) ; switch ( $ sExt ) { case 'php' : $ aConfigOptions = Php :: read ( $ sConfigFile ) ; break ; case 'yaml' : case 'yml' : $ aConfigOptions = Yaml :: read ( $ sConfigFile ) ; break ; case 'json' : $ aConfigOptions = Json :: read ( $ sConfigFile ) ; break ; default : $ sErrorMsg = jaxon_trans ( 'config.errors.file.extension' , array ( 'path' => $ sConfigFile ) ) ; throw new \ Jaxon \ Config \ Exception \ File ( $ sErrorMsg ) ; } return $ aConfigOptions ; }
docstring: Read options from a config file
  
  @param string        $sConfigFile        The full path to the config file
  
  @return array
docstring_tokens: Read options from a config file