@@ -61,8 +61,7 @@ |
||
61 | 61 | * @class PaginationServiceProvider |
62 | 62 | * @package Platine\Framework\Service\Provider |
63 | 63 | */ |
64 | -class PaginationServiceProvider extends ServiceProvider |
|
65 | -{ |
|
64 | +class PaginationServiceProvider extends ServiceProvider { |
|
66 | 65 | |
67 | 66 | /** |
68 | 67 | * {@inheritdoc} |
@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | * @class MakeActionCommand |
56 | 56 | * @package Platine\Framework\Console\Command |
57 | 57 | */ |
58 | -class MakeActionCommand extends MakeCommand |
|
59 | -{ |
|
58 | +class MakeActionCommand extends MakeCommand { |
|
60 | 59 | |
61 | 60 | /** |
62 | 61 | * {@inheritodc} |
@@ -85,31 +84,3 @@ discard block |
||
85 | 84 | public function getClassTemplate(): string |
86 | 85 | { |
87 | 86 | return <<<EOF |
88 | - <?php |
|
89 | - |
|
90 | - declare(strict_types=1); |
|
91 | - |
|
92 | - namespace %namespace%; |
|
93 | - |
|
94 | - use Platine\Http\Handler\RequestHandlerInterface; |
|
95 | - use Platine\Http\ResponseInterface; |
|
96 | - use Platine\Http\ServerRequestInterface; |
|
97 | - |
|
98 | - /** |
|
99 | - * @class %classname% |
|
100 | - * @package %namespace% |
|
101 | - */ |
|
102 | - class %classname% implements RequestHandlerInterface |
|
103 | - { |
|
104 | - |
|
105 | - /** |
|
106 | - * {@inheritodc} |
|
107 | - */ |
|
108 | - public function handle(ServerRequestInterface \$request): ResponseInterface |
|
109 | - { |
|
110 | - } |
|
111 | - } |
|
112 | - |
|
113 | - EOF; |
|
114 | - } |
|
115 | -} |
@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @class MakeCommand |
58 | 58 | * @package Platine\Framework\Console |
59 | 59 | */ |
60 | -abstract class MakeCommand extends Command |
|
61 | -{ |
|
60 | +abstract class MakeCommand extends Command { |
|
62 | 61 | |
63 | 62 | /** |
64 | 63 | * The Application instance |
@@ -111,8 +110,7 @@ discard block |
||
111 | 110 | /** |
112 | 111 | * {@inheritodc} |
113 | 112 | */ |
114 | - public function execute() |
|
115 | - { |
|
113 | + public function execute() { |
|
116 | 114 | $writer = $this->io()->writer(); |
117 | 115 | $name = $this->getArgumentValue('name'); |
118 | 116 | $cleanName = str_replace('/', '\\', $name); |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class BootstrapRenderer |
55 | 55 | * @package Platine\Framework\Pagination |
56 | 56 | */ |
57 | -class BootstrapRenderer implements RendererInterface |
|
58 | -{ |
|
57 | +class BootstrapRenderer implements RendererInterface { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class ServerRequestUrlGenerator |
55 | 55 | * @package Platine\Framework\Pagination |
56 | 56 | */ |
57 | -class ServerRequestUrlGenerator implements UrlGeneratorInterface |
|
58 | -{ |
|
57 | +class ServerRequestUrlGenerator implements UrlGeneratorInterface { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * The server request instance |
@@ -80,8 +79,7 @@ discard block |
||
80 | 79 | * @param ServerRequestInterface $request |
81 | 80 | * @param string $queryName |
82 | 81 | */ |
83 | - public function __construct(ServerRequestInterface $request, string $queryName) |
|
84 | - { |
|
82 | + public function __construct(ServerRequestInterface $request, string $queryName) { |
|
85 | 83 | $this->request = $request; |
86 | 84 | $this->queryVarName = $queryName; |
87 | 85 |