original_string: public static function connect($mysqlConfig)
      {
          $dbConfig = array(
              'dsn' => 'mysql:dbname=' . $mysqlConfig['dbname'] . ';host=' . $mysqlConfig['host'],
              'user' => $mysqlConfig['user'],
              'pass' => $mysqlConfig['pass'],
              'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"),
          );
  
          return parent::connect($dbConfig);
      }
code: public static function connect($mysqlConfig)
      {
          $dbConfig = array(
              'dsn' => 'mysql:dbname=' . $mysqlConfig['dbname'] . ';host=' . $mysqlConfig['host'],
              'user' => $mysqlConfig['user'],
              'pass' => $mysqlConfig['pass'],
              'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"),
          );
  
          return parent::connect($dbConfig);
      }
code_tokens: public static function connect ( $ mysqlConfig ) { $ dbConfig = array ( 'dsn' => 'mysql:dbname=' . $ mysqlConfig [ 'dbname' ] . ';host=' . $ mysqlConfig [ 'host' ] , 'user' => $ mysqlConfig [ 'user' ] , 'pass' => $ mysqlConfig [ 'pass' ] , 'options' => array ( PDO :: MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8" ) , ) ; return parent :: connect ( $ dbConfig ) ; }
docstring: Returns a PDO instance
  @param array $mysqlConfig
  @return PDO
docstring_tokens: Returns a PDO instance