Skip to content

Commit

Permalink
Changed constant name of GLUE_ERROR_MESSAGES to SEPARATOR_ERROR_MESSA…
Browse files Browse the repository at this point in the history
…GES. (#88)
  • Loading branch information
OGKevin committed Dec 27, 2017
1 parent 399e4b7 commit 842a97f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Exception/ExceptionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ class ExceptionFactory
const FORMAT_RESPONSE_CODE_LINE = 'HTTP Response Code: %s';
const FORMAT_RESPONSE_ID = 'The response id to help bunq debug: %s';
const FORMAT_ERROR_MESSAGE_LINE = 'Error message: %s';
const GLUE_ERROR_MESSAGES = "\n";

/**
* String separator constants
*/
const SEPARATOR_ERROR_MESSAGES = "\n";

/**
* The first item index in an array.
Expand Down Expand Up @@ -92,6 +96,6 @@ private static function generateErrorMessage(
*/
private static function glueMessages(array $messages): string
{
return implode(self::GLUE_ERROR_MESSAGES, $messages);
return implode(self::SEPARATOR_ERROR_MESSAGES, $messages);
}
}

0 comments on commit 842a97f

Please sign in to comment.