@@ -56,8 +56,7 @@ discard block |
||
| 56 | 56 | * @class HandleAuthFailure |
| 57 | 57 | * @package Platine\Framework\Demo\Event |
| 58 | 58 | */ |
| 59 | -class HandleAuthFailure implements ListenerInterface |
|
| 60 | -{ |
|
| 59 | +class HandleAuthFailure implements ListenerInterface { |
|
| 61 | 60 | |
| 62 | 61 | /** |
| 63 | 62 | * Logger instance |
@@ -69,16 +68,14 @@ discard block |
||
| 69 | 68 | * Create new instance |
| 70 | 69 | * @param LoggerInterface $logger |
| 71 | 70 | */ |
| 72 | - public function __construct(LoggerInterface $logger) |
|
| 73 | - { |
|
| 71 | + public function __construct(LoggerInterface $logger) { |
|
| 74 | 72 | $this->logger = $logger; |
| 75 | 73 | } |
| 76 | 74 | |
| 77 | 75 | /** |
| 78 | 76 | * {@inheritdoc} |
| 79 | 77 | */ |
| 80 | - public function handle(EventInterface $event) |
|
| 81 | - { |
|
| 78 | + public function handle(EventInterface $event) { |
|
| 82 | 79 | if ($event instanceof AuthInvalidPasswordEvent) { |
| 83 | 80 | $user = $event->getUser(); |
| 84 | 81 | $this->logger->error('User {email} - {username} enter wrong password ', [ |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | { |
| 148 | 148 | $param = new RequestData($request); |
| 149 | 149 | |
| 150 | - $items = $param->post('items', []); |
|
| 150 | + $items = $param->post('items', []); |
|
| 151 | 151 | if (empty($items)) { |
| 152 | 152 | return new RedirectResponse( |
| 153 | 153 | $this->routeHelper->generateUrl('user_list') |
@@ -64,8 +64,7 @@ |
||
| 64 | 64 | * @package Platine\Framework\Demo\Action\User |
| 65 | 65 | * @template T |
| 66 | 66 | */ |
| 67 | -class BatchAction implements RequestHandlerInterface |
|
| 68 | -{ |
|
| 67 | +class BatchAction implements RequestHandlerInterface { |
|
| 69 | 68 | |
| 70 | 69 | /** |
| 71 | 70 | * Logger instance |
@@ -212,10 +212,10 @@ |
||
| 212 | 212 | return $this; |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | - /** |
|
| 216 | - * Return the application root path |
|
| 217 | - * @return string |
|
| 218 | - */ |
|
| 215 | + /** |
|
| 216 | + * Return the application root path |
|
| 217 | + * @return string |
|
| 218 | + */ |
|
| 219 | 219 | public function getAppPath(): string |
| 220 | 220 | { |
| 221 | 221 | return $this->appPath; |
@@ -64,8 +64,7 @@ discard block |
||
| 64 | 64 | * @package Platine\Framework\App |
| 65 | 65 | * @template T |
| 66 | 66 | */ |
| 67 | -class Application extends Container |
|
| 68 | -{ |
|
| 67 | +class Application extends Container { |
|
| 69 | 68 | |
| 70 | 69 | /** |
| 71 | 70 | * The application version |
@@ -130,8 +129,7 @@ discard block |
||
| 130 | 129 | * Create new instance |
| 131 | 130 | * @param string $basePath |
| 132 | 131 | */ |
| 133 | - public function __construct(string $basePath = '') |
|
| 134 | - { |
|
| 132 | + public function __construct(string $basePath = '') { |
|
| 135 | 133 | parent::__construct(); |
| 136 | 134 | $this->basePath = $basePath; |
| 137 | 135 | $this->loadCoreServiceProviders(); |
@@ -162,8 +160,7 @@ discard block |
||
| 162 | 160 | * @param string $env |
| 163 | 161 | * @return $this |
| 164 | 162 | */ |
| 165 | - public function setEnvironment(string $env) |
|
| 166 | - { |
|
| 163 | + public function setEnvironment(string $env) { |
|
| 167 | 164 | $this->env = $env; |
| 168 | 165 | |
| 169 | 166 | return $this; |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * @class CurrentUrlTag |
| 56 | 56 | * @package Platine\Framework\Template\Tag |
| 57 | 57 | */ |
| 58 | -class CurrentUrlTag extends AbstractTag |
|
| 59 | -{ |
|
| 58 | +class CurrentUrlTag extends AbstractTag { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * {@inheritdoc} |