@@ -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); |
@@ -142,10 +142,10 @@ |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * Get watch |
|
146 | - * @param string $name |
|
147 | - * @return Timer |
|
148 | - */ |
|
145 | + * Get watch |
|
146 | + * @param string $name |
|
147 | + * @return Timer |
|
148 | + */ |
|
149 | 149 | public function getWatch(string $name): Timer |
150 | 150 | { |
151 | 151 | if (array_key_exists($name, $this->timers) === false) { |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class Watch |
55 | 55 | * @package Platine\Framework\Helper\Timer |
56 | 56 | */ |
57 | -class Watch |
|
58 | -{ |
|
57 | +class Watch { |
|
59 | 58 | /** |
60 | 59 | * The default name to use if none is provided |
61 | 60 | */ |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class Timer |
55 | 55 | * @package Platine\Framework\Helper\Timer |
56 | 56 | */ |
57 | -class Timer |
|
58 | -{ |
|
57 | +class Timer { |
|
59 | 58 | public const NOT_STARTED = 0; |
60 | 59 | public const STARTED = 1; |
61 | 60 | public const PAUSED = 2; |
@@ -89,8 +88,7 @@ discard block |
||
89 | 88 | * Create new timer instance |
90 | 89 | * @param string $name |
91 | 90 | */ |
92 | - public function __construct(string $name) |
|
93 | - { |
|
91 | + public function __construct(string $name) { |
|
94 | 92 | $this->name = $name; |
95 | 93 | } |
96 | 94 |