@@ -64,8 +64,7 @@ |
||
64 | 64 | * @package Platine\Framework\Migration\Seed\Command |
65 | 65 | * @template T |
66 | 66 | */ |
67 | -abstract class AbstractSeedCommand extends Command |
|
68 | -{ |
|
67 | +abstract class AbstractSeedCommand extends Command { |
|
69 | 68 | /** |
70 | 69 | * The configuration to use |
71 | 70 | * @var Config<T> |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class CurrentUrlTag |
56 | 56 | * @package Platine\Framework\Template\Tag |
57 | 57 | */ |
58 | -class CurrentUrlTag extends AbstractTag |
|
59 | -{ |
|
58 | +class CurrentUrlTag extends AbstractTag { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class CsrfTag |
58 | 58 | * @package Platine\Framework\Template\Tag |
59 | 59 | */ |
60 | -class CsrfTag extends AbstractTag |
|
61 | -{ |
|
60 | +class CsrfTag extends AbstractTag { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class SignerInterface |
52 | 52 | * @package Platine\Framework\Security\JWT |
53 | 53 | */ |
54 | -interface SignerInterface |
|
55 | -{ |
|
54 | +interface SignerInterface { |
|
56 | 55 | /** |
57 | 56 | * Sign the given data using the given key |
58 | 57 | * @param string $data |
@@ -56,8 +56,7 @@ discard block |
||
56 | 56 | * @package Platine\Framework\Security\JWT\Signer |
57 | 57 | * @template T |
58 | 58 | */ |
59 | -class HMAC implements SignerInterface |
|
60 | -{ |
|
59 | +class HMAC implements SignerInterface { |
|
61 | 60 | /** |
62 | 61 | * The configuration instance |
63 | 62 | * @var Config<T> |
@@ -74,8 +73,7 @@ discard block |
||
74 | 73 | * Create new instance |
75 | 74 | * @param Config<T> $config |
76 | 75 | */ |
77 | - public function __construct(Config $config) |
|
78 | - { |
|
76 | + public function __construct(Config $config) { |
|
79 | 77 | $this->config = $config; |
80 | 78 | $algo = $config->get('api.sign.hmac.signature_algo', ''); |
81 | 79 | if (!in_array($algo, hash_hmac_algos())) { |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class Base64UrlSafeEncoder |
54 | 54 | * @package Platine\Framework\Security\JWT\Encoder |
55 | 55 | */ |
56 | -class Base64UrlSafeEncoder implements EncoderInterface |
|
57 | -{ |
|
56 | +class Base64UrlSafeEncoder implements EncoderInterface { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | */ |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class EncoderInterface |
52 | 52 | * @package Platine\Framework\Security\JWT |
53 | 53 | */ |
54 | -interface EncoderInterface |
|
55 | -{ |
|
54 | +interface EncoderInterface { |
|
56 | 55 | /** |
57 | 56 | * Encode the given data |
58 | 57 | * @param string $data |
@@ -62,8 +62,7 @@ |
||
62 | 62 | * @package Platine\Framework\Auth\Middleware |
63 | 63 | * @template T |
64 | 64 | */ |
65 | -class AuthenticationMiddleware implements MiddlewareInterface |
|
66 | -{ |
|
65 | +class AuthenticationMiddleware implements MiddlewareInterface { |
|
67 | 66 | /** |
68 | 67 | * The Authentication instance |
69 | 68 | * @var AuthenticationInterface |
@@ -61,8 +61,7 @@ |
||
61 | 61 | * @package Platine\Framework\Auth\Middleware |
62 | 62 | * @template T |
63 | 63 | */ |
64 | -class ApiAuthenticationMiddleware implements MiddlewareInterface |
|
65 | -{ |
|
64 | +class ApiAuthenticationMiddleware implements MiddlewareInterface { |
|
66 | 65 | /** |
67 | 66 | * The Authentication instance |
68 | 67 | * @var ApiAuthenticationInterface |