original_string: protected function getNewMySqlConnection(array $config, string $connection = null)
      {
          if ($connection && isset($config[$connection])) {
              $config = array_merge($config, $config[$connection]);
          }
  
          return ConnectorFactory::make(FW::version())->connect($config);
      }
code: protected function getNewMySqlConnection(array $config, string $connection = null)
      {
          if ($connection && isset($config[$connection])) {
              $config = array_merge($config, $config[$connection]);
          }
  
          return ConnectorFactory::make(FW::version())->connect($config);
      }
code_tokens: protected function getNewMySqlConnection ( array $ config , string $ connection = null ) { if ( $ connection && isset ( $ config [ $ connection ] ) ) { $ config = array_merge ( $ config , $ config [ $ connection ] ) ; } return ConnectorFactory :: make ( FW :: version ( ) ) -> connect ( $ config ) ; }
docstring: Get a new mysql connection.
  
  @param array $config
  @param string $connection
  
  @return \PDO
docstring_tokens: Get a new mysql connection .