Passed
Push — develop ( c77ba7...d3c53a )
by nguereza
04:05
created
src/Service/Provider/CommandServiceProvider.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 CommandServiceProvider
58 58
  * @package Platine\Framework\Service\Provider
59 59
  */
60
-class CommandServiceProvider extends ServiceProvider
61
-{
60
+class CommandServiceProvider extends ServiceProvider {
62 61
     /**
63 62
      * {@inheritdoc}
64 63
      */
Please login to merge, or discard this patch.
src/Service/Provider/CookieServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class CookieServiceProvider
57 57
  * @package Platine\Framework\Service\Provider
58 58
  */
59
-class CookieServiceProvider extends ServiceProvider
60
-{
59
+class CookieServiceProvider extends ServiceProvider {
61 60
     /**
62 61
      * {@inheritdoc}
63 62
      */
Please login to merge, or discard this patch.
src/Service/Provider/BaseServiceProvider.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
  * @class BaseServiceProvider
67 67
  * @package Platine\Framework\Service\Provider
68 68
  */
69
-class BaseServiceProvider extends ServiceProvider
70
-{
69
+class BaseServiceProvider extends ServiceProvider {
71 70
     /**
72 71
      * {@inheritdoc}
73 72
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $this->app->share(Application::class, $this->app);
81 81
         $this->app->share('app', $this->app);
82
-        $this->app->share(ConsoleApp::class, function () {
82
+        $this->app->share(ConsoleApp::class, function() {
83 83
             return new ConsoleApp('PLATINE CONSOLE', $this->app->version());
84 84
         });
85 85
         $this->app->share(ContainerInterface::class, $this->app);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $this->app->bind(MiddlewareResolverInterface::class, MiddlewareResolver::class);
90 90
         $this->app->bind(MaintenanceMiddleware::class);
91 91
         $this->app->bind(MaintenanceDriverInterface::class, FileMaintenanceDriver::class);
92
-        $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) {
92
+        $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) {
93 93
             return new ResponseEmitter(
94 94
                 $app->get(Config::class)->get('app.response_chunck_size', null)
95 95
             );
Please login to merge, or discard this patch.
src/Service/Provider/AuthServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
  * @class AuthServiceProvider
74 74
  * @package Platine\Framework\Service\Provider
75 75
  */
76
-class AuthServiceProvider extends ServiceProvider
77
-{
76
+class AuthServiceProvider extends ServiceProvider {
78 77
     /**
79 78
      * {@inheritdoc}
80 79
      */
Please login to merge, or discard this patch.
src/Service/Provider/DatabaseServiceProvider.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
  * @class DatabaseServiceProvider
63 63
  * @package Platine\Framework\Service\Provider
64 64
  */
65
-class DatabaseServiceProvider extends ServiceProvider
66
-{
65
+class DatabaseServiceProvider extends ServiceProvider {
67 66
     /**
68 67
      * {@inheritdoc}
69 68
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function register(): void
71 71
     {
72
-        $this->app->bind(Configuration::class, function (ContainerInterface $app) {
72
+        $this->app->bind(Configuration::class, function(ContainerInterface $app) {
73 73
             /** @template T @var Config<T> $config */
74 74
             $config = $app->get(Config::class);
75 75
             $driver = $config->get('database.default', 'default');
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
             return new Configuration($dbConfig);
85 85
         });
86 86
 
87
-        $this->app->share(Pool::class, function (ContainerInterface $app) {
87
+        $this->app->share(Pool::class, function(ContainerInterface $app) {
88 88
             return new Pool($app->get(Config::class)->get('database', []));
89 89
         });
90 90
 
91
-        $this->app->share(Connection::class, function (ContainerInterface $app) {
91
+        $this->app->share(Connection::class, function(ContainerInterface $app) {
92 92
             return new Connection(
93 93
                 $app->get(Configuration::class),
94 94
                 $app->get(LoggerInterface::class)
Please login to merge, or discard this patch.
src/Service/Provider/FilesystemServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class FilesystemServiceProvider
57 57
  * @package Platine\Framework\Service\Provider
58 58
  */
59
-class FilesystemServiceProvider extends ServiceProvider
60
-{
59
+class FilesystemServiceProvider extends ServiceProvider {
61 60
     /**
62 61
      * {@inheritdoc}
63 62
      */
Please login to merge, or discard this patch.
src/Migration/Command/AbstractCommand.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
  * @package Platine\Framework\Migration\Command
66 66
  * @template T
67 67
  */
68
-abstract class AbstractCommand extends Command
69
-{
68
+abstract class AbstractCommand extends Command {
70 69
     /**
71 70
      * The migration repository
72 71
      * @var MigrationRepository
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -219,9 +219,9 @@  discard block
 block discarded – undo
219 219
     {
220 220
         /** @var MigrationEntity[] $migrations */
221 221
         $migrations = $this->repository
222
-                           ->query()
223
-                           ->orderBy('version', $orderDir)
224
-                           ->all();
222
+                            ->query()
223
+                            ->orderBy('version', $orderDir)
224
+                            ->all();
225 225
         $result = [];
226 226
 
227 227
         foreach ($migrations as $entity) {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     protected function getMigrationClassName(string $description, string $version): string
244 244
     {
245 245
         return Str::camel($description, false)
246
-               . Str::replaceFirst('_', '', $version);
246
+                . Str::replaceFirst('_', '', $version);
247 247
     }
248 248
 
249 249
     /**
Please login to merge, or discard this patch.
src/Migration/Seed/Command/AbstractSeedCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
64 64
  * @package Platine\Framework\Migration\Seed\Command
65 65
  * @template T
66 66
  */
67
-abstract class AbstractSeedCommand extends Command
68
-{
67
+abstract class AbstractSeedCommand extends Command {
69 68
     /**
70 69
      * The configuration to use
71 70
      * @var Config<T>
Please login to merge, or discard this patch.
src/Template/Tag/CurrentUrlTag.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 CurrentUrlTag
56 56
  * @package Platine\Framework\Template\Tag
57 57
  */
58
-class CurrentUrlTag extends AbstractTag
59
-{
58
+class CurrentUrlTag extends AbstractTag {
60 59
     /**
61 60
      * {@inheritdoc}
62 61
      */
Please login to merge, or discard this patch.