Passed
Push — develop ( c77ba7...d3c53a )
by nguereza
04:05
created
src/Kernel/ConsoleKernel.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * @package Platine\Framework\Kernel
59 59
  * @template T
60 60
  */
61
-class ConsoleKernel extends BaseKernel
62
-{
61
+class ConsoleKernel extends BaseKernel {
63 62
     /**
64 63
      * Console application instance
65 64
      * @var ConsoleApp
@@ -83,8 +82,7 @@  discard block
 block discarded – undo
83 82
      * @param Application $app
84 83
      * @param ConsoleApp $console
85 84
      */
86
-    public function __construct(Application $app, ConsoleApp $console)
87
-    {
85
+    public function __construct(Application $app, ConsoleApp $console) {
88 86
         parent::__construct($app);
89 87
         $this->console = $console;
90 88
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
      * @param string|Command $command
133 133
      * @return void
134 134
      */
135
-    public function addCommand(string|Command $command): void
135
+    public function addCommand(string | Command $command): void
136 136
     {
137 137
         if (is_string($command)) {
138 138
             $command = $this->createCommand($command);
Please login to merge, or discard this patch.
src/Service/Provider/DatabaseConfigServiceProvider.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
  * @class DatabaseConfigServiceProvider
60 60
  * @package Platine\Framework\Service\Provider
61 61
  */
62
-class DatabaseConfigServiceProvider extends ServiceProvider
63
-{
62
+class DatabaseConfigServiceProvider extends ServiceProvider {
64 63
     /**
65 64
      * {@inheritdoc}
66 65
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             DatabaseConfigLoader::class
77 77
         );
78 78
 
79
-        $this->app->share(AppDatabaseConfig::class, function (ContainerInterface $app) {
79
+        $this->app->share(AppDatabaseConfig::class, function(ContainerInterface $app) {
80 80
             $env = $app->get(Config::class)->get('app.env', '');
81 81
             return new AppDatabaseConfig(
82 82
                 $app->get(DatabaseConfigLoaderInterface::class),
Please login to merge, or discard this patch.
src/Config/Model/Configuration.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,19 +68,19 @@
 block discarded – undo
68 68
             'updated_at' => '?date',
69 69
         ]);
70 70
 
71
-        $mapper->filter('status', function (Query $q, $value) {
71
+        $mapper->filter('status', function(Query $q, $value) {
72 72
             $q->where('status')->is($value);
73 73
         });
74 74
 
75
-        $mapper->filter('env', function (Query $q, $value) {
75
+        $mapper->filter('env', function(Query $q, $value) {
76 76
             $q->where('env')->is($value);
77 77
         });
78 78
 
79
-        $mapper->filter('module', function (Query $q, $value) {
79
+        $mapper->filter('module', function(Query $q, $value) {
80 80
             $q->where('module')->is($value);
81 81
         });
82 82
 
83
-        $mapper->filter('type', function (Query $q, $value) {
83
+        $mapper->filter('type', function(Query $q, $value) {
84 84
             $q->where('type')->is($value);
85 85
         });
86 86
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @package Platine\Framework\Config\Model
57 57
  * @extends Entity<Configuration>
58 58
  */
59
-class Configuration extends Entity
60
-{
59
+class Configuration extends Entity {
61 60
     /**
62 61
      * @param EntityMapperInterface<Configuration> $mapper
63 62
      * @return void
Please login to merge, or discard this patch.
src/Config/AppDatabaseConfig.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -129,10 +129,10 @@
 block discarded – undo
129 129
         $name = $results['key'];
130 130
 
131 131
         $config = $this->loader->loadConfig([
132
-             'name' => $name,
133
-             'module' => $module,
134
-             'env' => $this->env
135
-         ]);
132
+                'name' => $name,
133
+                'module' => $module,
134
+                'env' => $this->env
135
+            ]);
136 136
 
137 137
         if ($config === null) {
138 138
             $this->loader->insertConfig([
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @template TDbConfigurationEntity as \Platine\Framework\Config\Model\Configuration
58 58
  * @implements ArrayAccess<string, mixed>
59 59
  */
60
-class AppDatabaseConfig implements ArrayAccess
61
-{
60
+class AppDatabaseConfig implements ArrayAccess {
62 61
     /**
63 62
      * The configuration items loaded
64 63
      * @var array<string, mixed>
Please login to merge, or discard this patch.
src/Service/Provider/ApiAuthServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
  * @class ApiAuthServiceProvider
63 63
  * @package Platine\Framework\Service\Provider
64 64
  */
65
-class ApiAuthServiceProvider extends ServiceProvider
66
-{
65
+class ApiAuthServiceProvider extends ServiceProvider {
67 66
     /**
68 67
      * {@inheritdoc}
69 68
      */
Please login to merge, or discard this patch.
src/Service/Provider/AuditServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class AuditServiceProvider
56 56
  * @package Platine\Framework\Service\Provider
57 57
  */
58
-class AuditServiceProvider extends ServiceProvider
59
-{
58
+class AuditServiceProvider extends ServiceProvider {
60 59
     /**
61 60
      * {@inheritdoc}
62 61
      */
Please login to merge, or discard this patch.
src/Console/Command/MakeProviderCommand.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 MakeProviderCommand
58 58
  * @package Platine\Framework\Console\Command
59 59
  */
60
-class MakeProviderCommand extends MakeCommand
61
-{
60
+class MakeProviderCommand 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
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         parent::__construct($application, $filesystem);
89 89
 
90 90
         $this->setName('make:provider')
91
-               ->setDescription('Command to generate new service provider class');
91
+                ->setDescription('Command to generate new service provider class');
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Console/Command/MakeMiddlewareCommand.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 MakeMiddlewareCommand
56 56
  * @package Platine\Framework\Console\Command
57 57
  */
58
-class MakeMiddlewareCommand extends MakeCommand
59
-{
58
+class MakeMiddlewareCommand 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:middleware')
77
-               ->setDescription('Command to generate new middleware class');
77
+                ->setDescription('Command to generate new middleware class');
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
src/Console/Command/MakeFormParamCommand.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
  * @class MakeFormParamCommand
59 59
  * @package Platine\Framework\Console\Command
60 60
  */
61
-class MakeFormParamCommand extends MakeCommand
62
-{
61
+class MakeFormParamCommand extends MakeCommand {
63 62
     /**
64 63
      * {@inheritdoc}
65 64
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
                 }
124 124
 
125 125
                 if (isset($values[2])) {
126
-                    $required = in_array($values[2], ['true', '1', 'yes', 'on', 'y']) ;
126
+                    $required = in_array($values[2], ['true', '1', 'yes', 'on', 'y']);
127 127
                 }
128 128
 
129 129
                 if (isset($values[3])) {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         parent::__construct($application, $filesystem);
90 90
 
91 91
         $this->setName('make:param')
92
-               ->setDescription('Command to generate new form parameter class');
92
+                ->setDescription('Command to generate new form parameter class');
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.