@@ -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 | } |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @package Platine\Framework\Template\Tag |
| 58 | 58 | * @template T |
| 59 | 59 | */ |
| 60 | -class CsrfTag extends AbstractTag |
|
| 61 | -{ |
|
| 60 | +class CsrfTag extends AbstractTag { |
|
| 62 | 61 | /** |
| 63 | 62 | * {@inheritdoc} |
| 64 | 63 | */ |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | ); |
| 138 | 138 | |
| 139 | 139 | $httpException->setTitle('Service Unavailable') |
| 140 | - ->setDescription($message); |
|
| 140 | + ->setDescription($message); |
|
| 141 | 141 | |
| 142 | 142 | // TODO Add headers |
| 143 | 143 | throw $httpException; |
@@ -241,9 +241,9 @@ discard block |
||
| 241 | 241 | $sessionCookieConfig = $this->config->get('session.cookie', []); |
| 242 | 242 | |
| 243 | 243 | $cookie->withExpires($expire) |
| 244 | - ->withPath($sessionCookieConfig['path'] ?? null) |
|
| 245 | - ->withDomain($sessionCookieConfig['domain'] ?? null) |
|
| 246 | - ->withHttpOnly(true); |
|
| 244 | + ->withPath($sessionCookieConfig['path'] ?? null) |
|
| 245 | + ->withDomain($sessionCookieConfig['domain'] ?? null) |
|
| 246 | + ->withHttpOnly(true); |
|
| 247 | 247 | |
| 248 | 248 | |
| 249 | 249 | return $cookie; |
@@ -70,8 +70,7 @@ |
||
| 70 | 70 | * @package Platine\Framework\Http\Middleware |
| 71 | 71 | * @template T |
| 72 | 72 | */ |
| 73 | -class MaintenanceMiddleware implements MiddlewareInterface |
|
| 74 | -{ |
|
| 73 | +class MaintenanceMiddleware implements MiddlewareInterface { |
|
| 75 | 74 | /** |
| 76 | 75 | * The configuration instance |
| 77 | 76 | * @var Config<T> |