original_string: private function formatDateTimeErrors(array $errors)
      {
          $formattedErrors = [];
  
          foreach ($errors as $pos => $message) {
              $formattedErrors[] = sprintf('at position %d: %s', $pos, $message);
          }
  
          return $formattedErrors;
      }
code: private function formatDateTimeErrors(array $errors)
      {
          $formattedErrors = [];
  
          foreach ($errors as $pos => $message) {
              $formattedErrors[] = sprintf('at position %d: %s', $pos, $message);
          }
  
          return $formattedErrors;
      }
code_tokens: private function formatDateTimeErrors ( array $ errors ) { $ formattedErrors = [ ] ; foreach ( $ errors as $ pos => $ message ) { $ formattedErrors [ ] = sprintf ( 'at position %d: %s' , $ pos , $ message ) ; } return $ formattedErrors ; }
docstring: Formats datetime errors.
  
  @return string[]
docstring_tokens: Formats datetime errors .