Skip to content

Commit 0c47952

Browse files
Nyholmnicolas-grekas
authored andcommitted
[3.4] Small update in our internal terminology
1 parent 41ff65c commit 0c47952

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Data/Generator/CurrencyDataGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class CurrencyDataGenerator extends AbstractDataGenerator
2727
{
28-
private static $blacklist = [
28+
private static $denylist = [
2929
'XBA' => true, // European Composite Unit
3030
'XBB' => true, // European Monetary Unit
3131
'XBC' => true, // European Unit of Account (XBC)
@@ -136,7 +136,7 @@ private function generateSymbolNamePairs(ArrayAccessibleResourceBundle $rootBund
136136
$symbolNamePairs = iterator_to_array($rootBundle['Currencies']);
137137

138138
// Remove unwanted currencies
139-
$symbolNamePairs = array_diff_key($symbolNamePairs, self::$blacklist);
139+
$symbolNamePairs = array_diff_key($symbolNamePairs, self::$denylist);
140140

141141
return $symbolNamePairs;
142142
}

Data/Generator/RegionDataGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
class RegionDataGenerator extends AbstractDataGenerator
2929
{
30-
private static $blacklist = [
30+
private static $denylist = [
3131
// Look like countries, but are sub-continents
3232
'QO' => true, // Outlying Oceania
3333
'EU' => true, // European Union
@@ -50,7 +50,7 @@ class RegionDataGenerator extends AbstractDataGenerator
5050

5151
public static function isValidCountryCode($region)
5252
{
53-
if (isset(self::$blacklist[$region])) {
53+
if (isset(self::$denylist[$region])) {
5454
return false;
5555
}
5656

0 commit comments

Comments
 (0)