@@ -55,8 +55,7 @@ discard block |
||
| 55 | 55 | * class RouteHelper |
| 56 | 56 | * @package Platine\Framework\Http |
| 57 | 57 | */ |
| 58 | -class RouteHelper |
|
| 59 | -{ |
|
| 58 | +class RouteHelper { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * The router instance |
@@ -68,8 +67,7 @@ discard block |
||
| 68 | 67 | * Create new instance |
| 69 | 68 | * @param Router $router |
| 70 | 69 | */ |
| 71 | - public function __construct(Router $router) |
|
| 72 | - { |
|
| 70 | + public function __construct(Router $router) { |
|
| 73 | 71 | $this->router = $router; |
| 74 | 72 | } |
| 75 | 73 | |
@@ -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'); |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * class CommandServiceProvider |
| 55 | 55 | * @package Platine\Framework\Service\Provider |
| 56 | 56 | */ |
| 57 | -class CommandServiceProvider extends ServiceProvider |
|
| 58 | -{ |
|
| 57 | +class CommandServiceProvider extends ServiceProvider { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | protected string $name; |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * {@inheritdoc} |
|
| 30 | - */ |
|
| 29 | + * {@inheritdoc} |
|
| 30 | + */ |
|
| 31 | 31 | public function __construct(string $markup, &$tokens, Parser $parser) |
| 32 | 32 | { |
| 33 | 33 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -16,8 +16,7 @@ discard block |
||
| 16 | 16 | * |
| 17 | 17 | * @author tony |
| 18 | 18 | */ |
| 19 | -class RouteUrlTag extends AbstractTag |
|
| 20 | -{ |
|
| 19 | +class RouteUrlTag extends AbstractTag { |
|
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | 22 | * The name of the route |
@@ -28,8 +27,7 @@ discard block |
||
| 28 | 27 | /** |
| 29 | 28 | * {@inheritdoc} |
| 30 | 29 | */ |
| 31 | - public function __construct(string $markup, &$tokens, Parser $parser) |
|
| 32 | - { |
|
| 30 | + public function __construct(string $markup, &$tokens, Parser $parser) { |
|
| 33 | 31 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
| 34 | 32 | if ($lexer->match($markup)) { |
| 35 | 33 | $this->name = $lexer->getStringMatch(0); |