original_string: protected function setCustomModes(PDO $connection, array $config)
      {
          $modes = implode(',', $config['modes']);
  
          $connection->prepare("set session sql_mode='{$modes}'")->execute();
      }
code: protected function setCustomModes(PDO $connection, array $config)
      {
          $modes = implode(',', $config['modes']);
  
          $connection->prepare("set session sql_mode='{$modes}'")->execute();
      }
code_tokens: protected function setCustomModes ( PDO $ connection , array $ config ) { $ modes = implode ( ',' , $ config [ 'modes' ] ) ; $ connection -> prepare ( "set session sql_mode='{$modes}'" ) -> execute ( ) ; }
docstring: Set the custom modes on the connection.
  
  @param  \PDO  $connection
  @param  array  $config
  @return void
docstring_tokens: Set the custom modes on the connection .