@@ -63,8 +63,7 @@ |
||
| 63 | 63 | * @package Platine\Framework\Demo\Action\User |
| 64 | 64 | * @template T |
| 65 | 65 | */ |
| 66 | -class DeleteAction implements RequestHandlerInterface |
|
| 67 | -{ |
|
| 66 | +class DeleteAction implements RequestHandlerInterface { |
|
| 68 | 67 | |
| 69 | 68 | /** |
| 70 | 69 | * Logger instance |
@@ -195,9 +195,9 @@ discard block |
||
| 195 | 195 | $this->template, |
| 196 | 196 | 'user/create', |
| 197 | 197 | [ |
| 198 | - 'param' => $formParam, |
|
| 199 | - 'status' => $statusList, |
|
| 200 | - 'roles' => $roles |
|
| 198 | + 'param' => $formParam, |
|
| 199 | + 'status' => $statusList, |
|
| 200 | + 'roles' => $roles |
|
| 201 | 201 | ] |
| 202 | 202 | ); |
| 203 | 203 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | 'created_at' => date('Y-m-d H:i:s'), |
| 219 | 219 | ]); |
| 220 | 220 | |
| 221 | - //Handle roles |
|
| 221 | + //Handle roles |
|
| 222 | 222 | $rolesId = $param->post('roles', []); |
| 223 | 223 | if (!empty($rolesId)) { |
| 224 | 224 | $selectedRoles = $this->roleRepository->findAll(...$rolesId); |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $this->template, |
| 236 | 236 | 'user/create', |
| 237 | 237 | [ |
| 238 | - 'param' => $formParam, |
|
| 238 | + 'param' => $formParam, |
|
| 239 | 239 | 'status' => $statusList, |
| 240 | 240 | 'roles' => $roles |
| 241 | 241 | ] |
@@ -70,8 +70,7 @@ |
||
| 70 | 70 | * @package Platine\Framework\Demo\Action\User |
| 71 | 71 | * @template T |
| 72 | 72 | */ |
| 73 | -class CreateAction implements RequestHandlerInterface |
|
| 74 | -{ |
|
| 73 | +class CreateAction implements RequestHandlerInterface { |
|
| 75 | 74 | |
| 76 | 75 | /** |
| 77 | 76 | * Logger instance |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | * @package Platine\Framework\Demo\Action\User |
| 60 | 60 | * @template T |
| 61 | 61 | */ |
| 62 | -class LogoutAction implements RequestHandlerInterface |
|
| 63 | -{ |
|
| 62 | +class LogoutAction implements RequestHandlerInterface { |
|
| 64 | 63 | /** |
| 65 | 64 | * The route helper instance |
| 66 | 65 | * @var RouteHelper |
@@ -71,8 +71,7 @@ |
||
| 71 | 71 | * @package Platine\Framework\Demo\Action\User |
| 72 | 72 | * @template T |
| 73 | 73 | */ |
| 74 | -class LoginAction implements RequestHandlerInterface |
|
| 75 | -{ |
|
| 74 | +class LoginAction implements RequestHandlerInterface { |
|
| 76 | 75 | |
| 77 | 76 | /** |
| 78 | 77 | * The logger instance |
@@ -109,10 +109,10 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | protected RouteHelper $routeHelper; |
| 111 | 111 | |
| 112 | - /** |
|
| 113 | - * The password hash to be used |
|
| 114 | - * @var HashInterface |
|
| 115 | - */ |
|
| 112 | + /** |
|
| 113 | + * The password hash to be used |
|
| 114 | + * @var HashInterface |
|
| 115 | + */ |
|
| 116 | 116 | protected HashInterface $hash; |
| 117 | 117 | |
| 118 | 118 | /** |
@@ -217,9 +217,9 @@ discard block |
||
| 217 | 217 | $this->template, |
| 218 | 218 | 'user/edit', |
| 219 | 219 | [ |
| 220 | - 'param' => $formParam, |
|
| 221 | - 'status' => $statusList, |
|
| 222 | - 'roles' => $roles |
|
| 220 | + 'param' => $formParam, |
|
| 221 | + 'status' => $statusList, |
|
| 222 | + 'roles' => $roles |
|
| 223 | 223 | ] |
| 224 | 224 | ); |
| 225 | 225 | } |
@@ -262,9 +262,9 @@ discard block |
||
| 262 | 262 | $this->template, |
| 263 | 263 | 'user/edit', |
| 264 | 264 | [ |
| 265 | - 'param' => $formParam, |
|
| 266 | - 'status' => $statusList, |
|
| 267 | - 'roles' => $roles |
|
| 265 | + 'param' => $formParam, |
|
| 266 | + 'status' => $statusList, |
|
| 267 | + 'roles' => $roles |
|
| 268 | 268 | ] |
| 269 | 269 | ); |
| 270 | 270 | } |
@@ -70,8 +70,7 @@ |
||
| 70 | 70 | * @package Platine\Framework\Demo\Action\User |
| 71 | 71 | * @template T |
| 72 | 72 | */ |
| 73 | -class EditAction implements RequestHandlerInterface |
|
| 74 | -{ |
|
| 73 | +class EditAction implements RequestHandlerInterface { |
|
| 75 | 74 | |
| 76 | 75 | /** |
| 77 | 76 | * The logger instance |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | * @package Platine\Framework\Demo\Action |
| 60 | 60 | * @template T |
| 61 | 61 | */ |
| 62 | -class HomeAction implements RequestHandlerInterface |
|
| 63 | -{ |
|
| 62 | +class HomeAction implements RequestHandlerInterface { |
|
| 64 | 63 | /** |
| 65 | 64 | * The template instance |
| 66 | 65 | * @var Template |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class RepositoryServiceProvider |
| 54 | 54 | * @package Platine\Framework |
| 55 | 55 | */ |
| 56 | -class RepositoryServiceProvider extends ServiceProvider |
|
| 57 | -{ |
|
| 56 | +class RepositoryServiceProvider extends ServiceProvider { |
|
| 58 | 57 | |
| 59 | 58 | /** |
| 60 | 59 | * {@inheritdoc} |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * @class UserServiceProvider |
| 62 | 62 | * @package Platine\Framework |
| 63 | 63 | */ |
| 64 | -class UserServiceProvider extends ServiceProvider |
|
| 65 | -{ |
|
| 64 | +class UserServiceProvider extends ServiceProvider { |
|
| 66 | 65 | |
| 67 | 66 | /** |
| 68 | 67 | * {@inheritdoc} |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class AppServiceProvider |
| 55 | 55 | * @package Platine\Framework |
| 56 | 56 | */ |
| 57 | -class AppServiceProvider extends ServiceProvider |
|
| 58 | -{ |
|
| 57 | +class AppServiceProvider extends ServiceProvider { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |