Skip to content

Commit 8ea8c57

Browse files
committed
phpcs fix
1 parent 0f9d7d9 commit 8ea8c57

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/TestCase/Controller/Traits/OneTimePasswordVerifyTraitTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
namespace CakeDC\Users\Test\TestCase\Controller\Traits;
1515

1616
use Cake\Core\Configure;
17+
use Cake\Event\Event;
1718
use Cake\Http\ServerRequest;
1819
use Cake\ORM\TableRegistry;
19-
use Cake\Event\Event;
20-
use CakeDC\Auth\Controller\Component\OneTimePasswordAuthenticatorComponent;
2120
use CakeDC\Auth\Authentication\AuthenticationService;
2221
use CakeDC\Auth\Authenticator\TwoFactorAuthenticator;
22+
use CakeDC\Auth\Controller\Component\OneTimePasswordAuthenticatorComponent;
2323
use CakeDC\Users\UsersPlugin;
2424

2525
class OneTimePasswordVerifyTraitTest extends BaseTrait
@@ -297,7 +297,7 @@ public function testVerifySkipEventCheck()
297297
$userData = [
298298
'id' => 1,
299299
'secret_verified' => 1,
300-
'email' => 'test@example.com'
300+
'email' => 'test@example.com',
301301
];
302302
$session = $this->_mockSession([
303303
'temporarySession' => $userData,
@@ -316,14 +316,14 @@ public function testVerifySkipEventCheck()
316316
$this->Trait->expects($this->once())
317317
->method('redirect');
318318
$this->Trait->verify();
319-
319+
320320
$this->assertNull(
321-
$session->read(AuthenticationService::TWO_FACTOR_VERIFY_SESSION_KEY)
321+
$session->read(AuthenticationService::TWO_FACTOR_VERIFY_SESSION_KEY),
322322
);
323323

324324
$this->assertEquals(
325325
$userData,
326-
$session->read(TwoFactorAuthenticator::USER_SESSION_KEY)
326+
$session->read(TwoFactorAuthenticator::USER_SESSION_KEY),
327327
);
328328
}
329329
}

0 commit comments

Comments
 (0)