fix(continuous-integration): correction point phpstan de level 1
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good
This commit is contained in:
@ -65,7 +65,7 @@ class SecurityController extends AbstractController
|
||||
}
|
||||
}
|
||||
|
||||
public function loginSQL(Request $request, AuthenticationUtils $authenticationUtils)
|
||||
public function loginSQL(Request $request, AuthenticationUtils $authenticationUtils,ManagerRegistry $em)
|
||||
{
|
||||
return $this->render('Home/loginSQL.html.twig', array(
|
||||
'last_username' => $authenticationUtils->getLastUsername(),
|
||||
@ -143,7 +143,7 @@ class SecurityController extends AbstractController
|
||||
return $this->autoconnexion($user,$redirect,$request);
|
||||
}
|
||||
|
||||
public function loginLDAP(Request $request)
|
||||
public function loginLDAP(Request $request, AuthenticationUtils $authenticationUtils,ManagerRegistry $em)
|
||||
{
|
||||
// Création du formulaire
|
||||
$form = $this->createForm(LoginType::class);
|
||||
@ -212,7 +212,7 @@ class SecurityController extends AbstractController
|
||||
}
|
||||
|
||||
|
||||
public function loginOPENID(Request $request, AuthenticationUtils $authenticationUtils)
|
||||
public function loginOPENID(Request $request, AuthenticationUtils $authenticationUtils,ManagerRegistry $em)
|
||||
{
|
||||
$state=Uuid::uuid4();
|
||||
$request->getSession()->set("oauthState",$state);
|
||||
@ -256,6 +256,7 @@ class SecurityController extends AbstractController
|
||||
$attributes=json_decode(json_encode($response->body), true);
|
||||
|
||||
// Username
|
||||
$username="";
|
||||
if(isset($attributes[$this->getParameter('oauthUsername')]))
|
||||
$username = $attributes[$this->getParameter('oauthUsername')];
|
||||
|
||||
|
Reference in New Issue
Block a user