@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class AuditUserInterface |
52 | 52 | * @package Platine\Framework\Audit |
53 | 53 | */ |
54 | -interface AuditUserInterface |
|
55 | -{ |
|
54 | +interface AuditUserInterface { |
|
56 | 55 | /** |
57 | 56 | * Return the user id |
58 | 57 | * @return int |
@@ -87,7 +87,7 @@ |
||
87 | 87 | ?CsrfStorageInterface $storage = null |
88 | 88 | ) { |
89 | 89 | $this->config = $config; |
90 | - $this->storage = $storage ?? new CsrfNullStorage(); |
|
90 | + $this->storage = $storage ?? new CsrfNullStorage(); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -59,8 +59,7 @@ |
||
59 | 59 | * @package Platine\Framework\Security\Csrf |
60 | 60 | * @template T |
61 | 61 | */ |
62 | -class CsrfManager |
|
63 | -{ |
|
62 | +class CsrfManager { |
|
64 | 63 | /** |
65 | 64 | * The application configuration class |
66 | 65 | * @var Config<T> |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class CsrfStorageInterface |
52 | 52 | * @package Platine\Framework\Security\Csrf |
53 | 53 | */ |
54 | -interface CsrfStorageInterface |
|
55 | -{ |
|
54 | +interface CsrfStorageInterface { |
|
56 | 55 | /** |
57 | 56 | * Return the token information from storage |
58 | 57 | * @param string $name |
@@ -74,7 +74,7 @@ |
||
74 | 74 | */ |
75 | 75 | public function set(string $name, string $token, int $expire): void |
76 | 76 | { |
77 | - $this->data[$name] = $token; |
|
77 | + $this->data[$name] = $token; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class CsrfNullStorage |
54 | 54 | * @package Platine\Framework\Security\Csrf\Storage |
55 | 55 | */ |
56 | -class CsrfNullStorage implements CsrfStorageInterface |
|
57 | -{ |
|
56 | +class CsrfNullStorage implements CsrfStorageInterface { |
|
58 | 57 | /** |
59 | 58 | * The CSRF data |
60 | 59 | * @var array<string, string> |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class CsrfUserSessionStorage |
52 | 52 | * @package Platine\Framework\Security\Csrf\Storage |
53 | 53 | */ |
54 | -class CsrfUserSessionStorage extends CsrfSessionStorage |
|
55 | -{ |
|
54 | +class CsrfUserSessionStorage extends CsrfSessionStorage { |
|
56 | 55 | /** |
57 | 56 | * {@inheritdoc} |
58 | 57 | */ |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class MaintenanceDriverInterface |
52 | 52 | * @package Platine\Framework\Http\Maintenance |
53 | 53 | */ |
54 | -interface MaintenanceDriverInterface |
|
55 | -{ |
|
54 | +interface MaintenanceDriverInterface { |
|
56 | 55 | /** |
57 | 56 | * Whether the maintenance is active or not |
58 | 57 | * @return bool |
@@ -57,14 +57,12 @@ |
||
57 | 57 | * @extends Repository<Configuration> |
58 | 58 | * @implements ConfigurationRepositoryInterface<Configuration> |
59 | 59 | */ |
60 | -class ConfigurationRepository extends Repository implements ConfigurationRepositoryInterface |
|
61 | -{ |
|
60 | +class ConfigurationRepository extends Repository implements ConfigurationRepositoryInterface { |
|
62 | 61 | /** |
63 | 62 | * Create new instance |
64 | 63 | * @param EntityManager<Configuration> $manager |
65 | 64 | */ |
66 | - public function __construct(EntityManager $manager) |
|
67 | - { |
|
65 | + public function __construct(EntityManager $manager) { |
|
68 | 66 | parent::__construct($manager, Configuration::class); |
69 | 67 | } |
70 | 68 | } |
@@ -55,6 +55,5 @@ |
||
55 | 55 | * @template TDbConfigurationEntity as \Platine\Orm\Entity |
56 | 56 | * @extends RepositoryInterface<TDbConfigurationEntity> |
57 | 57 | */ |
58 | -interface ConfigurationRepositoryInterface extends RepositoryInterface |
|
59 | -{ |
|
58 | +interface ConfigurationRepositoryInterface extends RepositoryInterface { |
|
60 | 59 | } |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class BaseCommand |
58 | 58 | * @package Platine\Framework\Console |
59 | 59 | */ |
60 | -abstract class BaseCommand extends Command |
|
61 | -{ |
|
60 | +abstract class BaseCommand extends Command { |
|
62 | 61 | /** |
63 | 62 | * The Application instance |
64 | 63 | * @var Application |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param string|object $fullClassName |
100 | 100 | * @return string |
101 | 101 | */ |
102 | - public function getClassBaseName(string|object $fullClassName): string |
|
102 | + public function getClassBaseName(string | object $fullClassName): string |
|
103 | 103 | { |
104 | 104 | if (is_object($fullClassName)) { |
105 | 105 | $fullClassName = get_class($fullClassName); |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * @param string|array<string> $data |
219 | 219 | * @return void |
220 | 220 | */ |
221 | - public function setReaderContent(Reader $reader, string $filename, string|array $data): void |
|
221 | + public function setReaderContent(Reader $reader, string $filename, string | array $data): void |
|
222 | 222 | { |
223 | 223 | if (is_array($data)) { |
224 | 224 | $data = implode(PHP_EOL, $data); |