Passed
Push — develop ( 0eb5cb...a52f7d )
by nguereza
03:36
created
src/Http/Middleware/ErrorHandlerMiddleware.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         ServerRequestInterface $request,
149 149
         RequestHandlerInterface $handler
150 150
     ): ResponseInterface {
151
-        set_error_handler(static function (
151
+        set_error_handler(static function(
152 152
             int $severity,
153 153
             string $message,
154 154
             string $file,
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
  * @class ErrorHandlerMiddleware
64 64
  * @package Platine\Framework\Http\Middleware
65 65
  */
66
-class ErrorHandlerMiddleware implements MiddlewareInterface
67
-{
66
+class ErrorHandlerMiddleware implements MiddlewareInterface {
68 67
     /**
69 68
      * The logger instance to use to save error
70 69
      * @var LoggerInterface
@@ -100,8 +99,7 @@  discard block
 block discarded – undo
100 99
      * @param bool $detail
101 100
      * @param LoggerInterface $logger
102 101
      */
103
-    public function __construct(bool $detail, LoggerInterface $logger)
104
-    {
102
+    public function __construct(bool $detail, LoggerInterface $logger) {
105 103
         $this->detail = $detail;
106 104
         $this->logger = $logger;
107 105
         $this->errorHandler = $this->getDefaultErrorHandler();
Please login to merge, or discard this patch.
src/Service/Provider/CacheServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      */
71 71
     public function register(): void
72 72
     {
73
-        $this->app->bind(Configuration::class, function (ContainerInterface $app) {
73
+        $this->app->bind(Configuration::class, function(ContainerInterface $app) {
74 74
             return new Configuration($app->get(Config::class)->get('cache', []));
75 75
         });
76 76
         $this->app->bind(AdapterInterface::class, LocalAdapter::class);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 block discarded – undo
63 63
  * @class CacheServiceProvider
64 64
  * @package Platine\Framework\Service\Provider
65 65
  */
66
-class CacheServiceProvider extends ServiceProvider
67
-{
66
+class CacheServiceProvider extends ServiceProvider {
68 67
     /**
69 68
      * {@inheritdoc}
70 69
      */
Please login to merge, or discard this patch.
src/Service/Provider/LoggerServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     public function register(): void
69 69
     {
70
-        $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) {
70
+        $this->app->bind(LoggerInterface::class, function(ContainerInterface $app) {
71 71
             $cfg = new LoggerConfiguration(
72 72
                 $app->get(Config::class)->get('logging', [])
73 73
             );
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
  * @class LoggerServiceProvider
60 60
  * @package Platine\Framework\Service\Provider
61 61
  */
62
-class LoggerServiceProvider extends ServiceProvider
63
-{
62
+class LoggerServiceProvider extends ServiceProvider {
64 63
     /**
65 64
      * {@inheritdoc}
66 65
      */
Please login to merge, or discard this patch.
src/Migration/Command/MigrationResetCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     ) {
72 72
         parent::__construct($app, $repository, $config, $filesystem);
73 73
         $this->setName('migration:reset')
74
-             ->setDescription('Rollback all migration done before');
74
+                ->setDescription('Rollback all migration done before');
75 75
     }
76 76
 
77 77
     /**
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
  * @template T
59 59
  * @extends AbstractCommand<T>
60 60
  */
61
-class MigrationResetCommand extends AbstractCommand
62
-{
61
+class MigrationResetCommand extends AbstractCommand {
63 62
     /**
64 63
      * Create new instance
65 64
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Migration/Command/MigrationInitCommand.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     protected function createMigrationTable(): void
118 118
     {
119 119
         $tableName = $this->table;
120
-        $this->schema->create($tableName, function (CreateTable $table) {
120
+        $this->schema->create($tableName, function(CreateTable $table) {
121 121
             $table->string('version', 20)
122 122
                    ->description('The migration version')
123 123
                    ->primary();
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     ) {
82 82
         parent::__construct($app, $repository, $config, $filesystem);
83 83
         $this->setName('migration:init')
84
-             ->setDescription('Initialize the migration by creating the migration table');
84
+                ->setDescription('Initialize the migration by creating the migration table');
85 85
 
86 86
         $this->schema = $schema;
87 87
     }
@@ -121,11 +121,11 @@  discard block
 block discarded – undo
121 121
         $tableName = $this->table;
122 122
         $this->schema->create($tableName, function (CreateTable $table) {
123 123
             $table->string('version', 20)
124
-                   ->description('The migration version')
125
-                   ->primary();
124
+                    ->description('The migration version')
125
+                    ->primary();
126 126
 
127 127
             $table->string('description')
128
-                   ->description('The migration description');
128
+                    ->description('The migration description');
129 129
 
130 130
             $table->datetime('created_at')
131 131
                     ->description('Migration run time');
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
  * @template T
61 61
  * @extends AbstractCommand<T>
62 62
  */
63
-class MigrationInitCommand extends AbstractCommand
64
-{
63
+class MigrationInitCommand extends AbstractCommand {
65 64
     /**
66 65
      * The schema to use
67 66
      * @var Schema
Please login to merge, or discard this patch.
src/Migration/Command/MigrationStatusCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     ) {
73 73
         parent::__construct($app, $repository, $config, $filesystem);
74 74
         $this->setName('migration:status')
75
-             ->setDescription('Show current status of your migrations');
75
+                ->setDescription('Show current status of your migrations');
76 76
     }
77 77
 
78 78
     /**
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 MigrationStatusCommand extends AbstractCommand
63
-{
62
+class MigrationStatusCommand extends AbstractCommand {
64 63
     /**
65 64
      * Create new instance
66 65
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Auth/Exception/InvalidCredentialsException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class InvalidCredentialsException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class InvalidCredentialsException extends AuthenticationException
41
-{
40
+class InvalidCredentialsException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Exception/AccountNotFoundException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class AccountNotFoundException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class AccountNotFoundException extends AuthenticationException
41
-{
40
+class AccountNotFoundException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Exception/MissingCredentialsException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class MissingCredentialsException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class MissingCredentialsException extends AuthenticationException
41
-{
40
+class MissingCredentialsException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.