@@ -73,7 +73,7 @@ |
||
| 73 | 73 | ) { |
| 74 | 74 | parent::__construct($application, $filesystem); |
| 75 | 75 | $this->setName('make:event') |
| 76 | - ->setDescription('Command to generate new event class'); |
|
| 76 | + ->setDescription('Command to generate new event class'); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * @class MakeEventCommand |
| 56 | 56 | * @package Platine\Framework\Console\Command |
| 57 | 57 | */ |
| 58 | -class MakeEventCommand extends MakeCommand |
|
| 59 | -{ |
|
| 58 | +class MakeEventCommand extends MakeCommand { |
|
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
| 62 | 61 | */ |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | ) { |
| 82 | 82 | parent::__construct($application, $filesystem); |
| 83 | 83 | $this->setName('make:repository') |
| 84 | - ->setDescription('Command to generate new repository class'); |
|
| 84 | + ->setDescription('Command to generate new repository class'); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @class MakeRepositoryCommand |
| 58 | 58 | * @package Platine\Framework\Console\Command |
| 59 | 59 | */ |
| 60 | -class MakeRepositoryCommand extends MakeCommand |
|
| 61 | -{ |
|
| 60 | +class MakeRepositoryCommand extends MakeCommand { |
|
| 62 | 61 | /** |
| 63 | 62 | * {@inheritdoc} |
| 64 | 63 | */ |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | ) { |
| 77 | 77 | parent::__construct($application, $filesystem); |
| 78 | 78 | $this->setName('make:action') |
| 79 | - ->setDescription('Command to generate new request handler class'); |
|
| 79 | + ->setDescription('Command to generate new request handler class'); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | * @class MakeActionCommand |
| 59 | 59 | * @package Platine\Framework\Console\Command |
| 60 | 60 | */ |
| 61 | -class MakeActionCommand extends MakeCommand |
|
| 62 | -{ |
|
| 61 | +class MakeActionCommand extends MakeCommand { |
|
| 63 | 62 | /** |
| 64 | 63 | * {@inheritdoc} |
| 65 | 64 | */ |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | ) { |
| 82 | 82 | parent::__construct($application, $filesystem); |
| 83 | 83 | $this->setName('make:listener') |
| 84 | - ->setDescription('Command to generate new event listener class'); |
|
| 84 | + ->setDescription('Command to generate new event listener class'); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @class MakeListenerCommand |
| 58 | 58 | * @package Platine\Framework\Console\Command |
| 59 | 59 | */ |
| 60 | -class MakeListenerCommand extends MakeCommand |
|
| 61 | -{ |
|
| 60 | +class MakeListenerCommand extends MakeCommand { |
|
| 62 | 61 | /** |
| 63 | 62 | * {@inheritdoc} |
| 64 | 63 | */ |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | * @class Auditor |
| 60 | 60 | * @package Platine\Framework\Audit |
| 61 | 61 | */ |
| 62 | -class Auditor |
|
| 63 | -{ |
|
| 62 | +class Auditor { |
|
| 64 | 63 | /** |
| 65 | 64 | * The audit repository |
| 66 | 65 | * @var AuditRepository |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | * @class EventType |
| 52 | 52 | * @package Platine\Framework\Audit\Enum |
| 53 | 53 | */ |
| 54 | -class EventType |
|
| 55 | -{ |
|
| 54 | +class EventType { |
|
| 56 | 55 | public const AUTH = 'auth'; |
| 57 | 56 | public const PASSWORD_RESET = 'password_reset'; |
| 58 | 57 | public const CREATE = 'create'; |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class CsvReader |
| 54 | 54 | * @package Platine\Framework\Helper |
| 55 | 55 | */ |
| 56 | -class CsvReader |
|
| 57 | -{ |
|
| 56 | +class CsvReader { |
|
| 58 | 57 | /** |
| 59 | 58 | * The valid delimiters list |
| 60 | 59 | * @var array<string> |
@@ -150,8 +150,8 @@ |
||
| 150 | 150 | $task->run(); |
| 151 | 151 | } catch (Throwable $e) { |
| 152 | 152 | $this->logger->error('Error occurred when execute task {task}, error: {error}', [ |
| 153 | - 'task' => $task->name(), |
|
| 154 | - 'error' => $e->getMessage() |
|
| 153 | + 'task' => $task->name(), |
|
| 154 | + 'error' => $e->getMessage() |
|
| 155 | 155 | ]); |
| 156 | 156 | } |
| 157 | 157 | } |
@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @class Scheduler |
| 57 | 57 | * @package Platine\Framework\Task |
| 58 | 58 | */ |
| 59 | -class Scheduler implements SchedulerInterface |
|
| 60 | -{ |
|
| 59 | +class Scheduler implements SchedulerInterface { |
|
| 61 | 60 | /** |
| 62 | 61 | * The logger instance |
| 63 | 62 | * @var LoggerInterface |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | * @class TaskInterface |
| 52 | 52 | * @package Platine\Framework\Task |
| 53 | 53 | */ |
| 54 | -interface TaskInterface |
|
| 55 | -{ |
|
| 54 | +interface TaskInterface { |
|
| 56 | 55 | /** |
| 57 | 56 | * Execute the task |
| 58 | 57 | * @return void |