@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @class FilesystemServiceProvider |
| 57 | 57 | * @package Platine\Framework\Service\Provider |
| 58 | 58 | */ |
| 59 | -class FilesystemServiceProvider extends ServiceProvider |
|
| 60 | -{ |
|
| 59 | +class FilesystemServiceProvider extends ServiceProvider { |
|
| 61 | 60 | /** |
| 62 | 61 | * {@inheritdoc} |
| 63 | 62 | */ |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | * @package Platine\Framework\Migration\Command |
| 66 | 66 | * @template T |
| 67 | 67 | */ |
| 68 | -abstract class AbstractCommand extends Command |
|
| 69 | -{ |
|
| 68 | +abstract class AbstractCommand extends Command { |
|
| 70 | 69 | /** |
| 71 | 70 | * The migration repository |
| 72 | 71 | * @var MigrationRepository |
@@ -219,9 +219,9 @@ discard block |
||
| 219 | 219 | { |
| 220 | 220 | /** @var MigrationEntity[] $migrations */ |
| 221 | 221 | $migrations = $this->repository |
| 222 | - ->query() |
|
| 223 | - ->orderBy('version', $orderDir) |
|
| 224 | - ->all(); |
|
| 222 | + ->query() |
|
| 223 | + ->orderBy('version', $orderDir) |
|
| 224 | + ->all(); |
|
| 225 | 225 | $result = []; |
| 226 | 226 | |
| 227 | 227 | foreach ($migrations as $entity) { |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | protected function getMigrationClassName(string $description, string $version): string |
| 244 | 244 | { |
| 245 | 245 | return Str::camel($description, false) |
| 246 | - . Str::replaceFirst('_', '', $version); |
|
| 246 | + . Str::replaceFirst('_', '', $version); |
|
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | /** |
@@ -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 | */ |
@@ -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 |