Passed
Push — develop ( c77ba7...d3c53a )
by nguereza
04:05
created
src/Console/Command/MakeValidatorCommand.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,8 +170,8 @@
 block discarded – undo
170 170
     {
171 171
         $content = parent::createClass();
172 172
 
173
-        $formParameter =  $this->replaceFormParameterName($content);
174
-        $validationDataBody =  $this->getValidationDataBody($formParameter);
173
+        $formParameter = $this->replaceFormParameterName($content);
174
+        $validationDataBody = $this->getValidationDataBody($formParameter);
175 175
 
176 176
         return $this->getValidationRulesBody($validationDataBody);
177 177
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
  * @class MakeValidatorCommand
61 61
  * @package Platine\Framework\Console\Command
62 62
  */
63
-class MakeValidatorCommand extends MakeCommand
64
-{
63
+class MakeValidatorCommand extends MakeCommand {
65 64
     /**
66 65
      * {@inheritdoc}
67 66
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         parent::__construct($application, $filesystem);
86 86
 
87 87
         $this->setName('make:validator')
88
-               ->setDescription('Command to generate new validator class');
88
+                ->setDescription('Command to generate new validator class');
89 89
     }
90 90
 
91 91
     /**
Please login to merge, or discard this patch.
src/Console/Command/MakeEventCommand.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         parent::__construct($application, $filesystem);
75 75
 
76 76
         $this->setName('make:event')
77
-               ->setDescription('Command to generate new event class');
77
+                ->setDescription('Command to generate new event class');
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
src/Console/Command/MakeRepositoryCommand.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         parent::__construct($application, $filesystem);
83 83
 
84 84
         $this->setName('make:repository')
85
-               ->setDescription('Command to generate new repository class');
85
+                ->setDescription('Command to generate new repository class');
86 86
     }
87 87
 
88 88
     /**
Please login to merge, or discard this patch.
src/Console/Command/MakeActionCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Console/Command/MakeListenerCommand.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         parent::__construct($application, $filesystem);
83 83
 
84 84
         $this->setName('make:listener')
85
-               ->setDescription('Command to generate new event listener class');
85
+                ->setDescription('Command to generate new event listener class');
86 86
     }
87 87
 
88 88
     /**
Please login to merge, or discard this patch.
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.