Passed
Push — master ( 72cd14...0a21f0 )
by Morris
11:57 queued 11s
created
resources/update-locales.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,20 +31,20 @@
 block discarded – undo
31 31
 
32 32
 require '../3rdparty/autoload.php';
33 33
 
34
-$locales = array_map(static function (string $localeCode) {
34
+$locales = array_map(static function(string $localeCode) {
35 35
 	return [
36 36
 		'code' => $localeCode,
37 37
 		'name' => Locale::getDisplayName($localeCode, 'en')
38 38
 	];
39 39
 }, ResourceBundle::getLocales(''));
40 40
 
41
-$locales = array_filter($locales, static function (array $locale) {
41
+$locales = array_filter($locales, static function(array $locale) {
42 42
 	return is_array(Punic\Data::explodeLocale($locale['code']));
43 43
 });
44 44
 
45 45
 $locales = array_values($locales);
46 46
 
47
-if (file_put_contents(__DIR__ . '/locales.json', json_encode($locales, JSON_PRETTY_PRINT)) === false) {
47
+if (file_put_contents(__DIR__.'/locales.json', json_encode($locales, JSON_PRETTY_PRINT)) === false) {
48 48
 	echo 'Failed to update locales.json';
49 49
 	exit(1);
50 50
 }
Please login to merge, or discard this patch.