@@ -150,7 +150,7 @@ public function getAuthenticationService(): AuthenticationServiceInterface
150150 if ($ service === null ) {
151151 throw new Exception (
152152 'The request object does not contain the required `authentication` attribute. Verify the ' .
153- 'AuthenticationMiddleware has been added. '
153+ 'AuthenticationMiddleware has been added. ' ,
154154 );
155155 }
156156
@@ -303,7 +303,7 @@ public function setIdentity(ArrayAccess $identity)
303303 $ result = $ service ->persistIdentity (
304304 $ controller ->getRequest (),
305305 $ controller ->getResponse (),
306- $ identity
306+ $ identity,
307307 );
308308
309309 $ controller ->setRequest ($ result ['request ' ]);
@@ -325,7 +325,7 @@ public function logout(): ?string
325325 /** @psalm-var array{request: \Cake\Http\ServerRequest, response: \Cake\Http\Response} $result */
326326 $ result = $ this ->getAuthenticationService ()->clearIdentity (
327327 $ controller ->getRequest (),
328- $ controller ->getResponse ()
328+ $ controller ->getResponse (),
329329 );
330330
331331 $ controller ->setRequest ($ result ['request ' ]);
@@ -396,7 +396,7 @@ public function impersonate(ArrayAccess $impersonated)
396396 $ controller ->getRequest (),
397397 $ controller ->getResponse (),
398398 $ impersonator ,
399- $ impersonated
399+ $ impersonated,
400400 );
401401
402402 if (!$ service ->isImpersonating ($ controller ->getRequest ())) {
@@ -424,7 +424,7 @@ public function stopImpersonating()
424424 /** @psalm-var array{request: \Cake\Http\ServerRequest, response: \Cake\Http\Response} $result */
425425 $ result = $ service ->stopImpersonating (
426426 $ controller ->getRequest (),
427- $ controller ->getResponse ()
427+ $ controller ->getResponse (),
428428 );
429429
430430 if ($ service ->isImpersonating ($ controller ->getRequest ())) {
@@ -453,7 +453,7 @@ public function isImpersonating(): bool
453453 $ controller = $ this ->getController ();
454454
455455 return $ service ->isImpersonating (
456- $ controller ->getRequest ()
456+ $ controller ->getRequest (),
457457 );
458458 }
459459
@@ -469,7 +469,7 @@ protected function getImpersonationAuthenticationService(): ImpersonationInterfa
469469 if (!($ service instanceof ImpersonationInterface)) {
470470 $ className = get_class ($ service );
471471 throw new InvalidArgumentException (
472- "The {$ className } must implement ImpersonationInterface in order to use impersonation. "
472+ "The {$ className } must implement ImpersonationInterface in order to use impersonation. " ,
473473 );
474474 }
475475
0 commit comments