@@ -54,8 +54,7 @@ |
||
54 | 54 | * application instance will be returned |
55 | 55 | * @return mixed |
56 | 56 | */ |
57 | - function app(?string $identifier = null) |
|
58 | - { |
|
57 | + function app(?string $identifier = null) { |
|
59 | 58 | $app = Application::getInstance(); |
60 | 59 | |
61 | 60 | return $identifier ? $app->get($identifier) : $app; |
@@ -4,8 +4,7 @@ |
||
4 | 4 | use Platine\Database\Schema\CreateTable; |
5 | 5 | use Platine\Framework\Migration\AbstractMigration; |
6 | 6 | |
7 | -class AddRolesTable20210705065247 extends AbstractMigration |
|
8 | -{ |
|
7 | +class AddRolesTable20210705065247 extends AbstractMigration { |
|
9 | 8 | |
10 | 9 | public function up(): void |
11 | 10 | { |
@@ -4,8 +4,7 @@ |
||
4 | 4 | use Platine\Database\Schema\CreateTable; |
5 | 5 | use Platine\Framework\Migration\AbstractMigration; |
6 | 6 | |
7 | -class AddConfigTable20210708043103 extends AbstractMigration |
|
8 | -{ |
|
7 | +class AddConfigTable20210708043103 extends AbstractMigration { |
|
9 | 8 | |
10 | 9 | public function up(): void |
11 | 10 | { |
@@ -54,15 +54,13 @@ discard block |
||
54 | 54 | * class ServerCommand |
55 | 55 | * @package Platine\Framework\Console\Command |
56 | 56 | */ |
57 | -class ServerCommand extends Command |
|
58 | -{ |
|
57 | +class ServerCommand extends Command { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * Create new instance |
62 | 61 | * {@inheritodc} |
63 | 62 | */ |
64 | - public function __construct() |
|
65 | - { |
|
63 | + public function __construct() { |
|
66 | 64 | parent::__construct('server', 'Command to manage PHP development server'); |
67 | 65 | $this->addOption('-a|--address', 'Server address', '0.0.0.0', true); |
68 | 66 | $this->addOption('-p|--port', 'Server listen port', '8080', true); |
@@ -72,8 +70,7 @@ discard block |
||
72 | 70 | /** |
73 | 71 | * {@inheritodc} |
74 | 72 | */ |
75 | - public function execute() |
|
76 | - { |
|
73 | + public function execute() { |
|
77 | 74 | $host = $this->getOptionValue('address'); |
78 | 75 | $port = $this->getOptionValue('port'); |
79 | 76 | $path = $this->getOptionValue('root'); |
@@ -4,8 +4,7 @@ |
||
4 | 4 | use Platine\Database\Schema\CreateTable; |
5 | 5 | use Platine\Framework\Migration\AbstractMigration; |
6 | 6 | |
7 | -class AddPermissionsTable20210717094547 extends AbstractMigration |
|
8 | -{ |
|
7 | +class AddPermissionsTable20210717094547 extends AbstractMigration { |
|
9 | 8 | |
10 | 9 | public function up(): void |
11 | 10 | { |
@@ -4,8 +4,7 @@ |
||
4 | 4 | use Platine\Database\Schema\CreateTable; |
5 | 5 | use Platine\Framework\Migration\AbstractMigration; |
6 | 6 | |
7 | -class AddUsersTable20210705065248 extends AbstractMigration |
|
8 | -{ |
|
7 | +class AddUsersTable20210705065248 extends AbstractMigration { |
|
9 | 8 | |
10 | 9 | public function up(): void |
11 | 10 | { |
@@ -4,8 +4,7 @@ |
||
4 | 4 | use Platine\Database\Schema\CreateTable; |
5 | 5 | use Platine\Framework\Migration\AbstractMigration; |
6 | 6 | |
7 | -class AddPermissionRolesTable20210717094822 extends AbstractMigration |
|
8 | -{ |
|
7 | +class AddPermissionRolesTable20210717094822 extends AbstractMigration { |
|
9 | 8 | |
10 | 9 | public function up(): void |
11 | 10 | { |
@@ -4,8 +4,7 @@ |
||
4 | 4 | use Platine\Database\Schema\CreateTable; |
5 | 5 | use Platine\Framework\Migration\AbstractMigration; |
6 | 6 | |
7 | -class AddRoleUsersTable20210717100434 extends AbstractMigration |
|
8 | -{ |
|
7 | +class AddRoleUsersTable20210717100434 extends AbstractMigration { |
|
9 | 8 | |
10 | 9 | public function up(): void |
11 | 10 | { |
@@ -62,8 +62,7 @@ |
||
62 | 62 | * @package Platine\Framework\Auth\Middleware |
63 | 63 | * @template T |
64 | 64 | */ |
65 | -class AuthorizationMiddleware implements MiddlewareInterface |
|
66 | -{ |
|
65 | +class AuthorizationMiddleware implements MiddlewareInterface { |
|
67 | 66 | |
68 | 67 | /** |
69 | 68 | * The Authorization instance |