private function buildGlobalErrors(array $errors, $msg)
    {
        if (!empty($errors)) {
            $msg .= sprintf('%s- errors:', PHP_EOL);

            foreach ($errors as $error) {
                $msg .= sprintf('%s  - %s', PHP_EOL, $error);
            }
        }

        return $msg;
    }
private function buildGlobalErrors(array $errors, $msg)
    {
        if (!empty($errors)) {
            $msg .= sprintf('%s- errors:', PHP_EOL);

            foreach ($errors as $error) {
                $msg .= sprintf('%s  - %s', PHP_EOL, $error);
            }
        }

        return $msg;
    }
private function buildGlobalErrors ( array $ errors , $ msg ) { if ( ! empty ( $ errors ) ) { $ msg .= sprintf ( '%s- errors:' , PHP_EOL ) ; foreach ( $ errors as $ error ) { $ msg .= sprintf ( '%s  - %s' , PHP_EOL , $ error ) ; } } return $ msg ; }
Build the global errors and returns the exception message.

@param string[] $errors The error messages
@param string   $msg    The exception message

@return string
Build the global errors and returns the exception message .