Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit fbbf79e

Browse files
Apply php-cs-fixer rule for array_key_exists()
1 parent c291179 commit fbbf79e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Core/Authentication/Token/AbstractToken.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function setAttributes(array $attributes)
179179
*/
180180
public function hasAttribute($name)
181181
{
182-
return array_key_exists($name, $this->attributes);
182+
return \array_key_exists($name, $this->attributes);
183183
}
184184

185185
/**
@@ -193,7 +193,7 @@ public function hasAttribute($name)
193193
*/
194194
public function getAttribute($name)
195195
{
196-
if (!array_key_exists($name, $this->attributes)) {
196+
if (!\array_key_exists($name, $this->attributes)) {
197197
throw new \InvalidArgumentException(sprintf('This token has no "%s" attribute.', $name));
198198
}
199199

Core/Encoder/EncoderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getEncoder($user)
3333
$encoderKey = null;
3434

3535
if ($user instanceof EncoderAwareInterface && (null !== $encoderName = $user->getEncoderName())) {
36-
if (!array_key_exists($encoderName, $this->encoders)) {
36+
if (!\array_key_exists($encoderName, $this->encoders)) {
3737
throw new \RuntimeException(sprintf('The encoder "%s" was not configured.', $encoderName));
3838
}
3939

0 commit comments

Comments
 (0)