Skip to content

Commit

Permalink
fixed tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mcdonald committed May 10, 2017
1 parent be255b9 commit d32bf03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Utils/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ public static function inward($postcode)
private function sanityCheck($postcode)
{
$validated = Validator::validatePostcode($postcode);
if(!$validated)
{
throw new Exception("Post code provided is not valid");
}

throw new Exception("Post code provided is not valid");
}

}

0 comments on commit d32bf03

Please sign in to comment.