Passed
Push — master ( 264acb...d51fb0 )
by Joe
02:21
created
src/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@
 block discarded – undo
336 336
 			$pattern = str_replace(' ', ' ?', $pattern);
337 337
 		}
338 338
 
339
-		return '/^' . $pattern . '$/';
339
+		return '/^'.$pattern.'$/';
340 340
 	}
341 341
 
342 342
 	public function getZipName($countryCode) {
Please login to merge, or discard this patch.
bin/parse.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	'US' => ['name' => 'ZIP code', 'acronym_text' => 'Zone Improvement Plan'],
22 22
 ];
23 23
 
24
-require(__DIR__ . '/../../../include/functions.inc.php');
24
+require(__DIR__.'/../../../include/functions.inc.php');
25 25
 function_requirements('getcurlpage');
26 26
 $page = getcurlpage('https://en.wikipedia.org/wiki/Special:Export/List_of_postal_codes');
27 27
 $page = str_replace("\n\n", "\n", $page);
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
 		$area = explode(',', $area);
46 46
 		foreach ($area as $each_area)
47 47
 			if (trim($each_area) != '' && trim($each_area) != '- no codes -')
48
-				$codes[] = "'" . trim($each_area) . "'";
48
+				$codes[] = "'".trim($each_area)."'";
49 49
 		$street = explode(',', $street);
50 50
 		foreach ($street as $each_street)
51 51
 			if (trim($each_street) != '')
52
-				$codes[] = "'" . trim($each_street) . "'";
52
+				$codes[] = "'".trim($each_street)."'";
53 53
 		$found[] = $iso;
54
-		echo "		'$iso' => [" . str_replace(['N', 'A'], ['#', '@'], implode(", ", $codes)) . "]," . (sizeof($codes) == 0 ? '	' : '') . "		// $country" . (trim($notes) != '' ? ', Notes: ' . $notes : '') . "\n";
54
+		echo "		'$iso' => [".str_replace(['N', 'A'], ['#', '@'], implode(", ", $codes))."],".(sizeof($codes) == 0 ? '	' : '')."		// $country".(trim($notes) != '' ? ', Notes: '.$notes : '')."\n";
55 55
 	}
56 56
 }
57 57
 $db = $GLOBALS['tf']->db;
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
 	$area = explode(',', $area);
76 76
 	foreach ($area as $each_area)
77 77
 		if (trim($each_area) != '' && trim($each_area) != '- no codes -')
78
-			$codes[] = "'" . trim($each_area) . "'";
78
+			$codes[] = "'".trim($each_area)."'";
79 79
 	$street = explode(',', $street);
80 80
 	foreach ($street as $each_street)
81 81
 		if (trim($each_street) != '')
82
-			$codes[] = "'" . trim($each_street) . "'";
83
-	echo "		'$iso' => [" . implode(", ", $codes) . "]	// $country" . (trim($notes) != '' ? ', Notes: ' . $notes : '') . "\n";
82
+			$codes[] = "'".trim($each_street)."'";
83
+	echo "		'$iso' => [".implode(", ", $codes)."]	// $country".(trim($notes) != '' ? ', Notes: '.$notes : '')."\n";
84 84
 }
85 85
 //$page = getcurlpage('https://en.wikipedia.org/wiki/List_of_postal_codes');
86 86
 //function_requirements('xml2array');
Please login to merge, or discard this patch.