Test Failed
Push — master ( 20dc42...e78c63 )
by Joe
02:40
created
src/Validator.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 	 * @return bool
292 292
 	 * @throws \Detain\ZipZapper\ValidationException
293 293
 	 */
294
-	public function isValid($countryCode, $postalCode, $ignoreSpaces = FALSE) {
294
+	public function isValid($countryCode, $postalCode, $ignoreSpaces = false) {
295 295
 		//$postalCode = str_replace('-', '', $postalCode);
296 296
 		if (!isset($this->formats[$countryCode]))
297 297
 			throw new ValidationException(sprintf('Invalid country code: "%s"', $countryCode));
@@ -299,13 +299,13 @@  discard block
 block discarded – undo
299 299
 		foreach ($this->formats[$countryCode] as $format) {
300 300
 			#echo $postalCode.' - '.$this->getFormatPattern($format).PHP_EOL;
301 301
 			if (preg_match($this->getFormatPattern($format, $ignoreSpaces), $postalCode))
302
-				return TRUE;
302
+				return true;
303 303
 		}
304 304
 
305 305
 		if (!count($this->formats[$countryCode]))
306
-			return TRUE;
306
+			return true;
307 307
 
308
-		return FALSE;
308
+		return false;
309 309
 	}
310 310
 
311 311
 	/**
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 	 * @param bool $ignoreSpaces
334 334
 	 * @return string
335 335
 	 */
336
-	protected function getFormatPattern($format, $ignoreSpaces = FALSE) {
336
+	protected function getFormatPattern($format, $ignoreSpaces = false) {
337 337
 		//$format = str_replace('-', '', $format);
338 338
 		$pattern = str_replace('#', '\d', $format);
339 339
 		$pattern = str_replace('@', '[a-zA-Z]', $pattern);
Please login to merge, or discard this patch.