@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class XmlErrorRenderer |
| 55 | 55 | * @package Platine\Framework\Handler\Error\Renderer |
| 56 | 56 | */ |
| 57 | -class XmlErrorRenderer extends AbstractErrorRenderer |
|
| 58 | -{ |
|
| 57 | +class XmlErrorRenderer extends AbstractErrorRenderer { |
|
| 59 | 58 | /** |
| 60 | 59 | * {@inheritdoc} |
| 61 | 60 | */ |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * @class HtmlErrorRenderer |
| 56 | 56 | * @package Platine\Framework\Handler\Error\Renderer |
| 57 | 57 | */ |
| 58 | -class HtmlErrorRenderer extends AbstractErrorRenderer |
|
| 59 | -{ |
|
| 58 | +class HtmlErrorRenderer extends AbstractErrorRenderer { |
|
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
| 62 | 61 | */ |
@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @class ErrorHandlerInterface |
| 57 | 57 | * @package Platine\Framework\Handler\Error |
| 58 | 58 | */ |
| 59 | -interface ErrorHandlerInterface |
|
| 60 | -{ |
|
| 59 | +interface ErrorHandlerInterface { |
|
| 61 | 60 | /** |
| 62 | 61 | * Handle error and generate the response |
| 63 | 62 | * @param ServerRequestInterface $request |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class ErrorRenderInterface |
| 55 | 55 | * @package Platine\Framework\Handler\Error |
| 56 | 56 | */ |
| 57 | -interface ErrorRenderInterface |
|
| 58 | -{ |
|
| 57 | +interface ErrorRenderInterface { |
|
| 59 | 58 | /** |
| 60 | 59 | * Render the error |
| 61 | 60 | * @param Throwable $exception |
@@ -56,8 +56,7 @@ discard block |
||
| 56 | 56 | * @package Platine\Framework\Console\Command |
| 57 | 57 | * @template T |
| 58 | 58 | */ |
| 59 | -class ConfigCommand extends Command |
|
| 60 | -{ |
|
| 59 | +class ConfigCommand extends Command { |
|
| 61 | 60 | /** |
| 62 | 61 | * The configuration instance |
| 63 | 62 | * @var Config<T> |
@@ -68,8 +67,7 @@ discard block |
||
| 68 | 67 | * Create new instance |
| 69 | 68 | * @param Config<T> $config |
| 70 | 69 | */ |
| 71 | - public function __construct(Config $config) |
|
| 72 | - { |
|
| 70 | + public function __construct(Config $config) { |
|
| 73 | 71 | parent::__construct('config', 'Command to manage configuration'); |
| 74 | 72 | |
| 75 | 73 | $this->addOption('-l|--list', 'List the configuration', '', false); |
@@ -81,8 +79,7 @@ discard block |
||
| 81 | 79 | /** |
| 82 | 80 | * {@inheritdoc} |
| 83 | 81 | */ |
| 84 | - public function execute() |
|
| 85 | - { |
|
| 82 | + public function execute() { |
|
| 86 | 83 | if ($this->getOptionValue('list')) { |
| 87 | 84 | $this->showConfigList(); |
| 88 | 85 | } |
@@ -61,8 +61,7 @@ discard block |
||
| 61 | 61 | * @package Platine\Framework\Console\Command |
| 62 | 62 | * @template T |
| 63 | 63 | */ |
| 64 | -class VendorPublishCommand extends Command |
|
| 65 | -{ |
|
| 64 | +class VendorPublishCommand extends Command { |
|
| 66 | 65 | /** |
| 67 | 66 | * Application instance |
| 68 | 67 | * @var Application |
@@ -130,8 +129,7 @@ discard block |
||
| 130 | 129 | /** |
| 131 | 130 | * {@inheritdoc} |
| 132 | 131 | */ |
| 133 | - public function execute() |
|
| 134 | - { |
|
| 132 | + public function execute() { |
|
| 135 | 133 | $writer = $this->io()->writer(); |
| 136 | 134 | $name = $this->getArgumentValue('name'); |
| 137 | 135 | $writer->boldGreen(sprintf('PUBLISH OF PACKAGE [%s]', $name), true)->eol(); |
@@ -61,8 +61,7 @@ discard block |
||
| 61 | 61 | * @package Platine\Framework\Console\Command |
| 62 | 62 | * @template T |
| 63 | 63 | */ |
| 64 | -class RouteCommand extends Command |
|
| 65 | -{ |
|
| 64 | +class RouteCommand extends Command { |
|
| 66 | 65 | /** |
| 67 | 66 | * The configuration instance |
| 68 | 67 | * @var Config<T> |
@@ -77,8 +76,7 @@ discard block |
||
| 77 | 76 | * @param Config<T> $config |
| 78 | 77 | * @param Router $router |
| 79 | 78 | */ |
| 80 | - public function __construct(Application $application, Config $config, Router $router) |
|
| 81 | - { |
|
| 79 | + public function __construct(Application $application, Config $config, Router $router) { |
|
| 82 | 80 | parent::__construct('route', 'Command to manage route'); |
| 83 | 81 | |
| 84 | 82 | $this->addOption('-l|--list', 'Show route list', null, false); |
@@ -91,8 +89,7 @@ discard block |
||
| 91 | 89 | /** |
| 92 | 90 | * {@inheritdoc} |
| 93 | 91 | */ |
| 94 | - public function execute() |
|
| 95 | - { |
|
| 92 | + public function execute() { |
|
| 96 | 93 | if ($this->getOptionValue('list')) { |
| 97 | 94 | $this->showRouteList(); |
| 98 | 95 | } |
@@ -58,8 +58,7 @@ discard block |
||
| 58 | 58 | * @package Platine\Framework\Kernel |
| 59 | 59 | * @template T |
| 60 | 60 | */ |
| 61 | -class ConsoleKernel extends BaseKernel |
|
| 62 | -{ |
|
| 61 | +class ConsoleKernel extends BaseKernel { |
|
| 63 | 62 | /** |
| 64 | 63 | * Console application instance |
| 65 | 64 | * @var ConsoleApp |
@@ -83,8 +82,7 @@ discard block |
||
| 83 | 82 | * @param Application $app |
| 84 | 83 | * @param ConsoleApp $console |
| 85 | 84 | */ |
| 86 | - public function __construct(Application $app, ConsoleApp $console) |
|
| 87 | - { |
|
| 85 | + public function __construct(Application $app, ConsoleApp $console) { |
|
| 88 | 86 | parent::__construct($app); |
| 89 | 87 | $this->console = $console; |
| 90 | 88 | } |
@@ -57,8 +57,7 @@ discard block |
||
| 57 | 57 | * @template T |
| 58 | 58 | * @extends AbstractSeedCommand<T> |
| 59 | 59 | */ |
| 60 | -class SeedExecuteCommand extends AbstractSeedCommand |
|
| 61 | -{ |
|
| 60 | +class SeedExecuteCommand extends AbstractSeedCommand { |
|
| 62 | 61 | /** |
| 63 | 62 | * Create new instance |
| 64 | 63 | * {@inheritdoc} |
@@ -76,8 +75,7 @@ discard block |
||
| 76 | 75 | /** |
| 77 | 76 | * {@inheritdoc} |
| 78 | 77 | */ |
| 79 | - public function execute() |
|
| 80 | - { |
|
| 78 | + public function execute() { |
|
| 81 | 79 | $io = $this->io(); |
| 82 | 80 | $writer = $io->writer(); |
| 83 | 81 | $writer->boldYellow('SEED EXECUTION', true)->eol(); |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | ) { |
| 71 | 71 | parent::__construct($app, $config, $filesystem); |
| 72 | 72 | $this->setName('seed:exec') |
| 73 | - ->setDescription('Command to execute seed'); |
|
| 73 | + ->setDescription('Command to execute seed'); |
|
| 74 | 74 | |
| 75 | 75 | $this->addOption('-i|--id', 'the seed version', null, false, true); |
| 76 | 76 | } |