Skip to content

Commit 10050c2

Browse files
Apply php-cs-fixer rule for array_key_exists()
1 parent 1d52767 commit 10050c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Data/Util/RecursiveArrayAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function get($array, array $indices)
2525
foreach ($indices as $index) {
2626
// Use array_key_exists() for arrays, isset() otherwise
2727
if (\is_array($array)) {
28-
if (array_key_exists($index, $array)) {
28+
if (\array_key_exists($index, $array)) {
2929
$array = $array[$index];
3030
continue;
3131
}

NumberFormatter/NumberFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public function getPattern()
460460
*/
461461
public function getSymbol($attr)
462462
{
463-
return array_key_exists($this->style, self::$enSymbols) && array_key_exists($attr, self::$enSymbols[$this->style]) ? self::$enSymbols[$this->style][$attr] : false;
463+
return \array_key_exists($this->style, self::$enSymbols) && \array_key_exists($attr, self::$enSymbols[$this->style]) ? self::$enSymbols[$this->style][$attr] : false;
464464
}
465465

466466
/**
@@ -474,7 +474,7 @@ public function getSymbol($attr)
474474
*/
475475
public function getTextAttribute($attr)
476476
{
477-
return array_key_exists($this->style, self::$enTextAttributes) && array_key_exists($attr, self::$enTextAttributes[$this->style]) ? self::$enTextAttributes[$this->style][$attr] : false;
477+
return \array_key_exists($this->style, self::$enTextAttributes) && \array_key_exists($attr, self::$enTextAttributes[$this->style]) ? self::$enTextAttributes[$this->style][$attr] : false;
478478
}
479479

480480
/**

0 commit comments

Comments
 (0)