Passed
Push — develop ( 0eb5cb...a52f7d )
by nguereza
03:36
created
src/Audit/Enum/EventType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Helper/CsvReader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
src/Task/Scheduler.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,8 +150,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
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 task list
63 62
      * @var TaskInterface[]
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * Create new instance
69 68
      * @param LoggerInterface $logger
70 69
      */
71
-    public function __construct(protected LoggerInterface $logger)
72
-    {
70
+    public function __construct(protected LoggerInterface $logger) {
73 71
     }
74 72
 
75 73
     /**
Please login to merge, or discard this patch.
src/Task/TaskInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Task/Cron.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class Cron
54 54
  * @package Platine\Framework\Task
55 55
  */
56
-class Cron
57
-{
56
+class Cron {
58 57
     /**
59 58
      * Parse the given cron expression and finds next execution time(stamp)
60 59
      * @param string $expression
Please login to merge, or discard this patch.
src/Task/SchedulerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * @class SchedulerInterface
52 52
  * @package Platine\Framework\Task
53 53
  */
54
-interface SchedulerInterface
55
-{
54
+interface SchedulerInterface {
56 55
     /**
57 56
      * Execute the scheduler
58 57
      * @return void
Please login to merge, or discard this patch.
src/Task/Command/SchedulerListCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         parent::__construct($scheduler, $application, $config);
74 74
 
75 75
         $this->setName('scheduler:list')
76
-             ->setDescription('Show the list of scheduled tasks');
76
+                ->setDescription('Show the list of scheduled tasks');
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
  * @template T
60 60
  * @extends AbstractCommand<T>
61 61
  */
62
-class SchedulerListCommand extends AbstractCommand
63
-{
62
+class SchedulerListCommand extends AbstractCommand {
64 63
     /**
65 64
      * Create new instance
66 65
      * @param SchedulerInterface $scheduler
Please login to merge, or discard this patch.
src/Service/Provider/SchedulerServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @class SchedulerServiceProvider
58 58
  * @package Platine\Framework\Service\Provider
59 59
  */
60
-class SchedulerServiceProvider extends ServiceProvider
61
-{
60
+class SchedulerServiceProvider extends ServiceProvider {
62 61
     /**
63 62
      * {@inheritdoc}
64 63
      */
Please login to merge, or discard this patch.
src/Console/Command/MakeTaskCommand.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
  * @class MakeTaskCommand
59 59
  * @package Platine\Framework\Console\Command
60 60
  */
61
-class MakeTaskCommand extends MakeCommand
62
-{
61
+class MakeTaskCommand extends MakeCommand {
63 62
     /**
64 63
      * {@inheritdoc}
65 64
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         parent::__construct($application, $filesystem);
91 91
 
92 92
         $this->setName('make:task')
93
-               ->setDescription('Command to generate new task class');
93
+                ->setDescription('Command to generate new task class');
94 94
     }
95 95
 
96 96
     /**
Please login to merge, or discard this patch.