original_string: protected function addSslOptions($dsn, array $config)
      {
          foreach (['sslmode', 'sslcert', 'sslkey', 'sslrootcert'] as $option) {
              if (isset($config[$option])) {
                  $dsn .= ";{$option}={$config[$option]}";
              }
          }
  
          return $dsn;
      }
code: protected function addSslOptions($dsn, array $config)
      {
          foreach (['sslmode', 'sslcert', 'sslkey', 'sslrootcert'] as $option) {
              if (isset($config[$option])) {
                  $dsn .= ";{$option}={$config[$option]}";
              }
          }
  
          return $dsn;
      }
code_tokens: protected function addSslOptions ( $ dsn , array $ config ) { foreach ( [ 'sslmode' , 'sslcert' , 'sslkey' , 'sslrootcert' ] as $ option ) { if ( isset ( $ config [ $ option ] ) ) { $ dsn .= ";{$option}={$config[$option]}" ; } } return $ dsn ; }
docstring: Add the SSL options to the DSN.
  
  @param  string  $dsn
  @param  array  $config
  @return string
docstring_tokens: Add the SSL options to the DSN .