Skip to content

Commit 325f700

Browse files
committed
phpcs fix
1 parent 0a396c2 commit 325f700

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/Model/Behavior/PasswordBehavior.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class PasswordBehavior extends BaseTokenBehavior
3434
*
3535
* @param string $reference User username or email
3636
* @param array $options checkActive, sendEmail, expiration
37-
* @return EntityInterface|null
37+
* @return \Cake\Datasource\EntityInterface|null
3838
* @throws \InvalidArgumentException
3939
* @throws \CakeDC\Users\Exception\UserNotFoundException
4040
* @throws \CakeDC\Users\Exception\UserAlreadyActiveException
4141
*/
42-
public function resetToken($reference, array $options = []): EntityInterface|null
42+
public function resetToken($reference, array $options = []): ?EntityInterface
4343
{
4444
if (empty($reference)) {
4545
throw new \InvalidArgumentException(__d('cake_d_c/users', 'Reference cannot be null'));

tests/TestCase/Controller/Traits/BaseTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ protected function _mockAuthentication($user = null, $failures = [], $identifier
255255
'Authentication.Form' => [
256256
'identifier' => [
257257
'Authentication.Password' => [],
258-
]
258+
],
259259
],
260260
],
261261
];
@@ -315,7 +315,7 @@ protected function _mockAuthenticationWithPasswordRehash($user = null, $failures
315315
'Authentication.Form' => [
316316
'identifier' => [
317317
'Authentication.Password' => [],
318-
]
318+
],
319319
],
320320
],
321321
];

tests/TestCase/Provider/AuthenticationServiceProviderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515

1616
use Authentication\Authenticator\SessionAuthenticator;
1717
use Authentication\Authenticator\TokenAuthenticator;
18-
use Authentication\Identifier\JwtSubjectIdentifier;
19-
use Authentication\Identifier\PasswordIdentifier;
20-
use Authentication\Identifier\TokenIdentifier;
2118
use Cake\Core\Configure;
2219
use Cake\Http\Response;
2320
use Cake\Http\ServerRequest;

0 commit comments

Comments
 (0)