@@ -40,8 +40,7 @@ |
||
40 | 40 | * @class HttpSpecialException |
41 | 41 | * @package Platine\Framework\Http\Exception |
42 | 42 | */ |
43 | -abstract class HttpSpecialException extends HttpException |
|
44 | -{ |
|
43 | +abstract class HttpSpecialException extends HttpException { |
|
45 | 44 | /** |
46 | 45 | * Create new instance |
47 | 46 | * @param ServerRequestInterface $request |
@@ -37,8 +37,7 @@ |
||
37 | 37 | * @class HttpNotFoundException |
38 | 38 | * @package Platine\Framework\Http\Exception |
39 | 39 | */ |
40 | -class HttpNotFoundException extends HttpSpecialException |
|
41 | -{ |
|
40 | +class HttpNotFoundException extends HttpSpecialException { |
|
42 | 41 | /** |
43 | 42 | * |
44 | 43 | * @var int |
@@ -37,8 +37,7 @@ |
||
37 | 37 | * @class HttpMethodNotAllowedException |
38 | 38 | * @package Platine\Framework\Http\Exception |
39 | 39 | */ |
40 | -class HttpMethodNotAllowedException extends HttpSpecialException |
|
41 | -{ |
|
40 | +class HttpMethodNotAllowedException extends HttpSpecialException { |
|
42 | 41 | /** |
43 | 42 | * |
44 | 43 | * @var int |
@@ -40,8 +40,7 @@ |
||
40 | 40 | * @class HeadersAlreadySentException |
41 | 41 | * @package Platine\Framework\Http\Emitter\Exception |
42 | 42 | */ |
43 | -class HeadersAlreadySentException extends RuntimeException |
|
44 | -{ |
|
43 | +class HeadersAlreadySentException extends RuntimeException { |
|
45 | 44 | /** |
46 | 45 | * Create new instance |
47 | 46 | * @return self |
@@ -40,8 +40,7 @@ |
||
40 | 40 | * @class OutputAlreadySentException |
41 | 41 | * @package Platine\Http\Framework\Emitter\Exception |
42 | 42 | */ |
43 | -class OutputAlreadySentException extends RuntimeException |
|
44 | -{ |
|
43 | +class OutputAlreadySentException extends RuntimeException { |
|
45 | 44 | /** |
46 | 45 | * Create new instance |
47 | 46 | * @return self |
@@ -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 | * {@inheritodc} |
93 | 91 | */ |
94 | - public function execute() |
|
95 | - { |
|
92 | + public function execute() { |
|
96 | 93 | if ($this->getOptionValue('list')) { |
97 | 94 | $this->showRouteList(); |
98 | 95 | } |
@@ -54,15 +54,13 @@ |
||
54 | 54 | * @class MigrationRepository |
55 | 55 | * @package Platine\Framework\Migration |
56 | 56 | */ |
57 | -class MigrationRepository extends Repository |
|
58 | -{ |
|
57 | +class MigrationRepository extends Repository { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * Create new instance |
62 | 61 | * @param EntityManager $manager |
63 | 62 | */ |
64 | - public function __construct(EntityManager $manager) |
|
65 | - { |
|
63 | + public function __construct(EntityManager $manager) { |
|
66 | 64 | parent::__construct($manager, MigrationEntity::class); |
67 | 65 | } |
68 | 66 | } |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class AbstractMigration |
54 | 54 | * @package Platine\Framework\Migration |
55 | 55 | */ |
56 | -abstract class AbstractMigration extends Schema |
|
57 | -{ |
|
56 | +abstract class AbstractMigration extends Schema { |
|
58 | 57 | /** |
59 | 58 | * Execute when do migrate |
60 | 59 | * @return void |
@@ -54,15 +54,13 @@ discard block |
||
54 | 54 | * @class BaseParam |
55 | 55 | * @package Platine\Framework\Form\Param |
56 | 56 | */ |
57 | -class BaseParam |
|
58 | -{ |
|
57 | +class BaseParam { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * Create new instance |
62 | 61 | * @param array<string, mixed> $data |
63 | 62 | */ |
64 | - public function __construct(array $data = []) |
|
65 | - { |
|
63 | + public function __construct(array $data = []) { |
|
66 | 64 | $params = array_merge($this->getDefault(), $data); |
67 | 65 | $this->load($params); |
68 | 66 | } |
@@ -110,8 +108,7 @@ discard block |
||
110 | 108 | * @param string $name |
111 | 109 | * @return mixed|null |
112 | 110 | */ |
113 | - public function __get($name) |
|
114 | - { |
|
111 | + public function __get($name) { |
|
115 | 112 | if (property_exists($this, $name)) { |
116 | 113 | return $this->{$name}; |
117 | 114 | } |