@@ -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 | } |
@@ -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> |
@@ -138,8 +138,8 @@ |
||
138 | 138 | ); |
139 | 139 | |
140 | 140 | $httpException->setTitle('Service Unavailable') |
141 | - ->setDescription($message) |
|
142 | - ->setHeaders($this->getHeaders($data)); |
|
141 | + ->setDescription($message) |
|
142 | + ->setHeaders($this->getHeaders($data)); |
|
143 | 143 | |
144 | 144 | throw $httpException; |
145 | 145 | } |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @package Platine\Framework\Config |
56 | 56 | * @template TDbConfigurationEntity as Entity |
57 | 57 | */ |
58 | -interface DatabaseConfigLoaderInterface extends LoaderInterface |
|
59 | -{ |
|
58 | +interface DatabaseConfigLoaderInterface extends LoaderInterface { |
|
60 | 59 | /** |
61 | 60 | * Load the configuration from database |
62 | 61 | * @param array<string, mixed> $where |
@@ -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 |
@@ -56,8 +56,7 @@ discard block |
||
56 | 56 | * @class MakeCommand |
57 | 57 | * @package Platine\Framework\Console |
58 | 58 | */ |
59 | -abstract class MakeCommand extends BaseCommand |
|
60 | -{ |
|
59 | +abstract class MakeCommand extends BaseCommand { |
|
61 | 60 | /** |
62 | 61 | * The type of class |
63 | 62 | * @var string |
@@ -93,8 +92,7 @@ discard block |
||
93 | 92 | /** |
94 | 93 | * {@inheritdoc} |
95 | 94 | */ |
96 | - public function execute() |
|
97 | - { |
|
95 | + public function execute() { |
|
98 | 96 | $io = $this->io(); |
99 | 97 | $writer = $io->writer(); |
100 | 98 | $name = $this->className; |
@@ -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 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | public function register(): void |
67 | 67 | { |
68 | 68 | $this->app->bind(AdapterInterface::class, OpenSSL::class); |
69 | - $this->app->bind(Encryption::class, function (ContainerInterface $app) { |
|
69 | + $this->app->bind(Encryption::class, function(ContainerInterface $app) { |
|
70 | 70 | $e = new Encryption($app->get(AdapterInterface::class)); |
71 | 71 | $e->setSecret($app->get(Config::class)->get('security.encryption.key', '')); |
72 | 72 |
@@ -58,8 +58,7 @@ |
||
58 | 58 | * @class EncryptionServiceProvider |
59 | 59 | * @package Platine\Framework\Service\Provider |
60 | 60 | */ |
61 | -class EncryptionServiceProvider extends ServiceProvider |
|
62 | -{ |
|
61 | +class EncryptionServiceProvider extends ServiceProvider { |
|
63 | 62 | /** |
64 | 63 | * {@inheritdoc} |
65 | 64 | */ |