@@ -63,11 +63,11 @@ |
||
63 | 63 | |
64 | 64 | $app = new Application(); |
65 | 65 | $app->setConfigPath(CONFIG_PATH) |
66 | - ->setRootPath(ROOT_PATH) |
|
67 | - ->setAppPath(APP_PATH) |
|
68 | - ->setVendorPath(VENDOR_PATH) |
|
69 | - ->setStoragePath(STORAGE_PATH) |
|
70 | - ->setEnvironment(ENVIRONMENT); |
|
66 | + ->setRootPath(ROOT_PATH) |
|
67 | + ->setAppPath(APP_PATH) |
|
68 | + ->setVendorPath(VENDOR_PATH) |
|
69 | + ->setStoragePath(STORAGE_PATH) |
|
70 | + ->setEnvironment(ENVIRONMENT); |
|
71 | 71 | |
72 | 72 | /** @var HttpKernel $kernel */ |
73 | 73 | $kernel = $app->make(HttpKernel::class); |
@@ -39,6 +39,5 @@ |
||
39 | 39 | * @class ApplicationException |
40 | 40 | * @package Platine\App\Exception |
41 | 41 | */ |
42 | -class ApplicationException extends Exception |
|
43 | -{ |
|
42 | +class ApplicationException extends Exception { |
|
44 | 43 | } |
@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * @class WelcomeAction |
59 | 59 | * @package Platine\App\Http\Action |
60 | 60 | */ |
61 | -class WelcomeAction implements RequestHandlerInterface |
|
62 | -{ |
|
61 | +class WelcomeAction implements RequestHandlerInterface { |
|
63 | 62 | /** |
64 | 63 | * The template instance |
65 | 64 | * @var Template |
@@ -77,8 +76,7 @@ discard block |
||
77 | 76 | * @param Template $template |
78 | 77 | * @param Application $app |
79 | 78 | */ |
80 | - public function __construct(Template $template, Application $app) |
|
81 | - { |
|
79 | + public function __construct(Template $template, Application $app) { |
|
82 | 80 | $this->template = $template; |
83 | 81 | $this->app = $app; |
84 | 82 | } |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class DemoMiddleware |
57 | 57 | * @package Platine\App\Http\Middleware |
58 | 58 | */ |
59 | -class DemoMiddleware implements MiddlewareInterface |
|
60 | -{ |
|
59 | +class DemoMiddleware implements MiddlewareInterface { |
|
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
63 | 62 | */ |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class ConsoleServiceProvider |
56 | 56 | * @package Platine\App\Provider |
57 | 57 | */ |
58 | -class ConsoleServiceProvider extends ServiceProvider |
|
59 | -{ |
|
58 | +class ConsoleServiceProvider extends ServiceProvider { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class AppServiceProvider |
56 | 56 | * @package Platine\App\Provider |
57 | 57 | */ |
58 | -class AppServiceProvider extends ServiceProvider |
|
59 | -{ |
|
58 | +class AppServiceProvider extends ServiceProvider { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class ServerCommand |
55 | 55 | * @package Platine\App\Console\Command |
56 | 56 | */ |
57 | -class ServerCommand extends Command |
|
58 | -{ |
|
57 | +class ServerCommand extends Command { |
|
59 | 58 | /** |
60 | 59 | * The shell instance to use |
61 | 60 | * @var Shell |
@@ -66,8 +65,7 @@ discard block |
||
66 | 65 | * Create new instance |
67 | 66 | * {@inheritdoc} |
68 | 67 | */ |
69 | - public function __construct(Shell $shell) |
|
70 | - { |
|
68 | + public function __construct(Shell $shell) { |
|
71 | 69 | parent::__construct('server', 'Command to manage PHP development server'); |
72 | 70 | $this->addOption('-a|--address', 'Server address', 'localhost', true); |
73 | 71 | $this->addOption('-p|--port', 'Server listen port', '8080', true); |
@@ -79,8 +77,7 @@ discard block |
||
79 | 77 | /** |
80 | 78 | * {@inheritdoc} |
81 | 79 | */ |
82 | - public function execute() |
|
83 | - { |
|
80 | + public function execute() { |
|
84 | 81 | $host = $this->getOptionValue('address'); |
85 | 82 | $port = $this->getOptionValue('port'); |
86 | 83 | $path = $this->getOptionValue('root'); |