original_string: public function genDsn($config): string
      {
          // Parse config
          $dsn = '';
          foreach ($config as $key => $value) {
              if (\in_array($key, self::AVAILABLE_OPTIONS, false)) {
                  $dsn .= "$key=$value;";
              }
          }
  
          // Get driver of connection
          $driver = strtolower($config['driver']);
  
          return "$driver:$dsn";
      }
code: public function genDsn($config): string
      {
          // Parse config
          $dsn = '';
          foreach ($config as $key => $value) {
              if (\in_array($key, self::AVAILABLE_OPTIONS, false)) {
                  $dsn .= "$key=$value;";
              }
          }
  
          // Get driver of connection
          $driver = strtolower($config['driver']);
  
          return "$driver:$dsn";
      }
code_tokens: public function genDsn ( $ config ) : string { // Parse config $ dsn = '' ; foreach ( $ config as $ key => $ value ) { if ( \ in_array ( $ key , self :: AVAILABLE_OPTIONS , false ) ) { $ dsn .= "$key=$value;" ; } } // Get driver of connection $ driver = strtolower ( $ config [ 'driver' ] ) ; return "$driver:$dsn" ; }
docstring: Generate DSN by parameters in config
  
  @param   array $config
  @return  string
docstring_tokens: Generate DSN by parameters in config