Skip to content

Commit 8eac001

Browse files
SpacePossumnicolas-grekas
authored andcommitted
[CS][2.7] yoda_style, no_unneeded_curly_braces, no_unneeded_final_method, semicolon_after_instruction
1 parent ba864bd commit 8eac001

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Authorization/AccessDecisionManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private function decideConsensus(TokenInterface $token, array $attributes, $obje
172172
return false;
173173
}
174174

175-
if ($grant == $deny && $grant != 0) {
175+
if ($grant == $deny && 0 != $grant) {
176176
return $this->allowIfEqualGrantedDeniedDecisions;
177177
}
178178

User/InMemoryUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function refreshUser(UserInterface $user)
9191
*/
9292
public function supportsClass($class)
9393
{
94-
return $class === 'Symfony\Component\Security\Core\User\User';
94+
return 'Symfony\Component\Security\Core\User\User' === $class;
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)