Skip to content

Commit 15c29c5

Browse files
committed
fixed CS
1 parent 01e21da commit 15c29c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firewall/SimpleFormAuthenticationListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function attemptAuthentication(Request $request)
107107
$password = ParameterBagUtils::getRequestParameterValue($request, $this->options['password_parameter']);
108108
}
109109

110-
if (!\is_string($username) && (!\is_object($username) || !\method_exists($username, '__toString'))) {
110+
if (!\is_string($username) && (!\is_object($username) || !method_exists($username, '__toString'))) {
111111
throw new BadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['username_parameter'], \gettype($username)));
112112
}
113113

Firewall/UsernamePasswordFormAuthenticationListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function attemptAuthentication(Request $request)
8585
$password = ParameterBagUtils::getRequestParameterValue($request, $this->options['password_parameter']);
8686
}
8787

88-
if (!\is_string($username) && (!\is_object($username) || !\method_exists($username, '__toString'))) {
88+
if (!\is_string($username) && (!\is_object($username) || !method_exists($username, '__toString'))) {
8989
throw new BadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['username_parameter'], \gettype($username)));
9090
}
9191

0 commit comments

Comments
 (0)