Skip to content

Commit af84288

Browse files
committed
Fix CS error
1 parent 049f583 commit af84288

File tree

5 files changed

+17
-33
lines changed

5 files changed

+17
-33
lines changed

src/AbstractCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract class AbstractCollection extends ObjectRegistry
4141
*/
4242
public function __construct(array $config = [])
4343
{
44-
$configOptions = array_filter($config, fn ($key) => is_string($key), ARRAY_FILTER_USE_KEY);
44+
$configOptions = array_filter($config, fn($key) => is_string($key), ARRAY_FILTER_USE_KEY);
4545
$this->setConfig($configOptions);
4646

4747
foreach ($config as $key => $value) {

src/Authenticator/CookieAuthenticator.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ public function authenticate(ServerRequestInterface $request): ResultInterface
121121
}
122122

123123
/**
124-
* @param \Psr\Http\Message\ServerRequestInterface $request The request.
125-
* @param \Psr\Http\Message\ResponseInterface $response The response.
126-
* @param \ArrayAccess<string, mixed>|array<string, mixed> $identity Identity data.
127-
* @return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
124+
* @inheritDoc
128125
*/
129-
public function persistIdentity(ServerRequestInterface $request, ResponseInterface $response, $identity): array
130-
{
126+
public function persistIdentity(
127+
ServerRequestInterface $request,
128+
ResponseInterface $response,
129+
ArrayAccess|array $identity,
130+
): array {
131131
$field = $this->getConfig('rememberMeField');
132132
$bodyData = $request->getParsedBody();
133133

src/Authenticator/ImpersonationInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
interface ImpersonationInterface
2424
{
2525
/**
26-
* Impersonates a user
26+
* Impersonate a user
2727
*
2828
* @param \Psr\Http\Message\ServerRequestInterface $request The request
2929
* @param \Psr\Http\Message\ResponseInterface $response The response

src/Authenticator/PrimaryKeySessionAuthenticator.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,7 @@ public function persistIdentity(ServerRequestInterface $request, ResponseInterfa
125125
}
126126

127127
/**
128-
* Impersonates a user
129-
*
130-
* @param \Psr\Http\Message\ServerRequestInterface $request The request
131-
* @param \Psr\Http\Message\ResponseInterface $response The response
132-
* @param \ArrayAccess $impersonator User who impersonates
133-
* @param \ArrayAccess $impersonated User impersonated
134-
* @return array
128+
* @inheritDoc
135129
*/
136130
public function impersonate(
137131
ServerRequestInterface $request,

src/Authenticator/SessionAuthenticator.php

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ public function authenticate(ServerRequestInterface $request): ResultInterface
6666
}
6767

6868
/**
69-
* @param \Psr\Http\Message\ServerRequestInterface $request The request object.
70-
* @param \Psr\Http\Message\ResponseInterface $response The response object.
71-
* @param \ArrayAccess<string, mixed>|array<string, mixed> $identity Identity data to persist.
72-
* @return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
69+
* @inheritDoc
7370
*/
74-
public function persistIdentity(ServerRequestInterface $request, ResponseInterface $response, $identity): array
75-
{
71+
public function persistIdentity(
72+
ServerRequestInterface $request,
73+
ResponseInterface $response,
74+
ArrayAccess|array $identity,
75+
): array {
7676
$sessionKey = $this->getConfig('sessionKey');
7777
/** @var \Cake\Http\Session $session */
7878
$session = $request->getAttribute('session');
@@ -106,13 +106,7 @@ public function clearIdentity(ServerRequestInterface $request, ResponseInterface
106106
}
107107

108108
/**
109-
* Impersonates a user
110-
*
111-
* @param \Psr\Http\Message\ServerRequestInterface $request The request
112-
* @param \Psr\Http\Message\ResponseInterface $response The response
113-
* @param \ArrayAccess<string, mixed> $impersonator User who impersonates
114-
* @param \ArrayAccess<string, mixed> $impersonated User impersonated
115-
* @return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
109+
* @inheritDoc
116110
*/
117111
public function impersonate(
118112
ServerRequestInterface $request,
@@ -140,11 +134,7 @@ public function impersonate(
140134
}
141135

142136
/**
143-
* Stops impersonation
144-
*
145-
* @param \Psr\Http\Message\ServerRequestInterface $request The request
146-
* @param \Psr\Http\Message\ResponseInterface $response The response
147-
* @return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
137+
* @inheritDoc
148138
*/
149139
public function stopImpersonating(ServerRequestInterface $request, ResponseInterface $response): array
150140
{

0 commit comments

Comments
 (0)