Skip to content

Commit

Permalink
Fixes bug for undefined variable. Adds correct variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankkumar committed Mar 20, 2015
1 parent 8010b37 commit 22ab31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function processError($body, $httpStatusCode, $response)
// Replace underscores with space
// Lowercase the words, capitalize first letter of each word
// Remove spaces
$error = str_replace('_', ' ', $error);
$error = str_replace('_', ' ', $code);
$error = ucwords(strtolower($error));
$error = str_replace(' ', '', $error);

Expand Down

0 comments on commit 22ab31f

Please sign in to comment.