Skip to content

Commit 3f8f398

Browse files
committed
Fix php-cs
1 parent ee4cfff commit 3f8f398

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

src/Service/Action/Auth/JwtTokenTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Cake\Routing\Router;
1919
use Cake\Utility\Hash;
2020
use CakeDC\Api\Service\Auth\TwoFactorAuthentication\OneTimePasswordAuthenticationCheckerFactory;
21-
use CakeDC\Api\Service\Auth\TwoFactorAuthentication\Webauthn2FAuthenticationCheckerFactory;
21+
use CakeDC\Api\Service\Auth\TwoFactorAuthentication\Webauthn2fAuthenticationCheckerFactory;
2222
use DateInterval;
2323
use DateTimeImmutable;
2424
use Lcobucci\JWT\Configuration;
@@ -184,7 +184,7 @@ protected function getOneTimePasswordAuthenticationChecker()
184184
/**
185185
* Get the configured u2f authentication checker
186186
*
187-
* @return \CakeDC\Auth\Authentication\Webauthn2FAuthenticationCheckerInterface
187+
* @return \CakeDC\Auth\Authentication\Webauthn2fAuthenticationCheckerInterface
188188
*/
189189
protected function getWebauthn2fAuthenticationChecker()
190190
{

src/Service/Auth/TwoFactorAuthentication/DefaultWebauthn2fAuthenticationChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* @package CakeDC\Auth\Auth
2121
*/
22-
class DefaultWebauthn2fAuthenticationChecker implements Webauthn2FAuthenticationCheckerInterface
22+
class DefaultWebauthn2fAuthenticationChecker implements Webauthn2fAuthenticationCheckerInterface
2323
{
2424
/**
2525
* Check if two factor authentication is enabled

src/Service/Auth/TwoFactorAuthentication/Webauthn2fAuthenticationCheckerFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
*
2020
* @package CakeDC\Auth\Auth
2121
*/
22-
class Webauthn2FAuthenticationCheckerFactory
22+
class Webauthn2fAuthenticationCheckerFactory
2323
{
2424
/**
2525
* Get the two factor authentication checker
2626
*
27-
* @return \CakeDC\Auth\Authentication\Webauthn2FAuthenticationCheckerInterface
27+
* @return \CakeDC\Auth\Authentication\Webauthn2fAuthenticationCheckerInterface
2828
*/
2929
public function build()
3030
{
3131
$className = Configure::read('Api.Webauthn2fa.checker');
3232
$interfaces = class_implements($className);
33-
$required = Webauthn2FAuthenticationCheckerInterface::class;
33+
$required = Webauthn2fAuthenticationCheckerInterface::class;
3434

3535
if (in_array($required, $interfaces)) {
3636
return new $className();

src/Service/Auth/TwoFactorAuthentication/Webauthn2fAuthenticationCheckerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
namespace CakeDC\Api\Service\Auth\TwoFactorAuthentication;
1414

15-
interface Webauthn2FAuthenticationCheckerInterface
15+
interface Webauthn2fAuthenticationCheckerInterface
1616
{
1717
/**
1818
* Check if two factor authentication is enabled

tests/Fixture/UsersFixture.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
use Authentication\PasswordHasher\DefaultPasswordHasher;
1616
use Authentication\PasswordHasher\PasswordHasherFactory;
1717
use Cake\TestSuite\Fixture\TestFixture;
18-
use CakeDC\Users\Webauthn\Base64Utility;
1918

2019
/**
2120
* UsersFixture
2221
*/
2322
class UsersFixture extends TestFixture
2423
{
25-
2624
/**
2725
* records property
2826
*

tests/bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ function def($name, $value)
8383
// Cake\Core\Configure::write('App.encoding', 'UTF-8');
8484
Cake\Core\Configure::write('debug', true);
8585

86-
@mkdir(TMP . 'cache/models', 0777);
87-
@mkdir(TMP . 'cache/persistent', 0777);
88-
@mkdir(TMP . 'cache/views', 0777);
86+
mkdir(TMP . 'cache/models', 0777);
87+
mkdir(TMP . 'cache/persistent', 0777);
88+
mkdir(TMP . 'cache/views', 0777);
8989

9090
$cache = [
9191
'default' => [

0 commit comments

Comments
 (0)