Passed
Push — develop ( 43a598...04e7b2 )
by nguereza
02:46
created
src/Http/Exception/HttpBadRequestException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
  * @class HttpBadRequestException
38 38
  * @package Platine\Framework\Http\Exception
39 39
  */
40
-class HttpBadRequestException extends HttpSpecialException
41
-{
40
+class HttpBadRequestException extends HttpSpecialException {
42 41
     /**
43 42
      *
44 43
      * @var int
Please login to merge, or discard this patch.
src/Http/Exception/HttpForbiddenException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
  * @class HttpForbiddenException
40 40
  * @package Platine\Framework\Http\Exception
41 41
  */
42
-class HttpForbiddenException extends HttpSpecialException
43
-{
42
+class HttpForbiddenException extends HttpSpecialException {
44 43
     /**
45 44
      *
46 45
      * @var int
Please login to merge, or discard this patch.
src/Http/Exception/HttpUnauthorizedException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
  * @class HttpUnauthorizedException
38 38
  * @package Platine\Framework\Http\Exception
39 39
  */
40
-class HttpUnauthorizedException extends HttpSpecialException
41
-{
40
+class HttpUnauthorizedException extends HttpSpecialException {
42 41
     /**
43 42
      *
44 43
      * @var int
Please login to merge, or discard this patch.
src/Http/Exception/HttpNotImplementedException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
  * @class HttpNotImplementedException
38 38
  * @package Platine\Framework\Http\Exception
39 39
  */
40
-class HttpNotImplementedException extends HttpSpecialException
41
-{
40
+class HttpNotImplementedException extends HttpSpecialException {
42 41
     /**
43 42
      *
44 43
      * @var int
Please login to merge, or discard this patch.
src/Http/Exception/HttpInternalServerErrorException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
  * @class HttpInternalServerErrorException
38 38
  * @package Platine\Framework\Http\Exception
39 39
  */
40
-class HttpInternalServerErrorException extends HttpSpecialException
41
-{
40
+class HttpInternalServerErrorException extends HttpSpecialException {
42 41
     /**
43 42
      *
44 43
      * @var int
Please login to merge, or discard this patch.
src/Http/Response/RedirectResponse.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,15 +53,13 @@
 block discarded – undo
53 53
  * @class RedirectResponse
54 54
  * @package Platine\Framework\Http\Response
55 55
  */
56
-class RedirectResponse extends Response
57
-{
56
+class RedirectResponse extends Response {
58 57
 
59 58
     /**
60 59
      * Create new instance
61 60
      * @param string $url
62 61
      */
63
-    public function __construct(string $url = '/')
64
-    {
62
+    public function __construct(string $url = '/') {
65 63
         parent::__construct(302);
66 64
         $this->headers['location'] = [$url];
67 65
     }
Please login to merge, or discard this patch.
src/Migration/Command/MigrationCreateCommand.php 5 patches
Indentation   +1 added lines, -24 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     ) {
83 83
         parent::__construct($app, $repository, $config, $filesystem);
84 84
         $this->setName('migration:create')
85
-             ->setDescription('Create a new migration');
85
+                ->setDescription('Create a new migration');
86 86
 
87 87
         $this->addArgument('name', 'name of migration', null, false, true);
88 88
     }
@@ -161,26 +161,3 @@  discard block
 block discarded – undo
161 161
     private function getTemplateClass(): string
162 162
     {
163 163
         return <<<EOF
164
-        <?php
165
-        namespace Platine\Framework\Migration;
166
-
167
-        use Platine\Framework\Migration\AbstractMigration;
168
-
169
-        class AddUserTable20210915100000 extends AbstractMigration
170
-        {
171
-
172
-            public function up(): void
173
-            {
174
-              //Action when migrate up
175
-
176
-            }
177
-
178
-            public function down(): void
179
-            {
180
-              //Action when migrate down
181
-
182
-            }
183
-        }
184
-        EOF;
185
-    }
186
-}
Please login to merge, or discard this patch.
Switch Indentation   -23 removed lines patch added patch discarded remove patch
@@ -161,26 +161,3 @@
 block discarded – undo
161 161
     private function getTemplateClass(): string
162 162
     {
163 163
         return <<<EOF
164
-        <?php
165
-        namespace Platine\Framework\Migration;
166
-
167
-        use Platine\Framework\Migration\AbstractMigration;
168
-
169
-        class AddUserTable20210915100000 extends AbstractMigration
170
-        {
171
-
172
-            public function up(): void
173
-            {
174
-              //Action when migrate up
175
-
176
-            }
177
-
178
-            public function down(): void
179
-            {
180
-              //Action when migrate down
181
-
182
-            }
183
-        }
184
-        EOF;
185
-    }
186
-}
Please login to merge, or discard this patch.
Spacing   -23 removed lines patch added patch discarded remove patch
@@ -161,26 +161,3 @@
 block discarded – undo
161 161
     private function getTemplateClass(): string
162 162
     {
163 163
         return <<<EOF
164
-        <?php
165
-        namespace Platine\Framework\Migration;
166
-
167
-        use Platine\Framework\Migration\AbstractMigration;
168
-
169
-        class AddUserTable20210915100000 extends AbstractMigration
170
-        {
171
-
172
-            public function up(): void
173
-            {
174
-              //Action when migrate up
175
-
176
-            }
177
-
178
-            public function down(): void
179
-            {
180
-              //Action when migrate down
181
-
182
-            }
183
-        }
184
-        EOF;
185
-    }
186
-}
Please login to merge, or discard this patch.
Braces   +2 added lines, -27 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * @template T
62 62
  * @extends AbstractCommand<T>
63 63
  */
64
-class MigrationCreateCommand extends AbstractCommand
65
-{
64
+class MigrationCreateCommand extends AbstractCommand {
66 65
 
67 66
     /**
68 67
      * The migration name
@@ -90,8 +89,7 @@  discard block
 block discarded – undo
90 89
     /**
91 90
      * {@inheritodc}
92 91
      */
93
-    public function execute()
94
-    {
92
+    public function execute() {
95 93
         $writer = $this->io()->writer();
96 94
 
97 95
         $version = date('Ymd_His');
@@ -161,26 +159,3 @@  discard block
 block discarded – undo
161 159
     private function getTemplateClass(): string
162 160
     {
163 161
         return <<<EOF
164
-        <?php
165
-        namespace Platine\Framework\Migration;
166
-
167
-        use Platine\Framework\Migration\AbstractMigration;
168
-
169
-        class AddUserTable20210915100000 extends AbstractMigration
170
-        {
171
-
172
-            public function up(): void
173
-            {
174
-              //Action when migrate up
175
-
176
-            }
177
-
178
-            public function down(): void
179
-            {
180
-              //Action when migrate down
181
-
182
-            }
183
-        }
184
-        EOF;
185
-    }
186
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -23 removed lines patch added patch discarded remove patch
@@ -161,26 +161,3 @@
 block discarded – undo
161 161
     private function getTemplateClass(): string
162 162
     {
163 163
         return <<<EOF
164
-        <?php
165
-        namespace Platine\Framework\Migration;
166
-
167
-        use Platine\Framework\Migration\AbstractMigration;
168
-
169
-        class AddUserTable20210915100000 extends AbstractMigration
170
-        {
171
-
172
-            public function up(): void
173
-            {
174
-              //Action when migrate up
175
-
176
-            }
177
-
178
-            public function down(): void
179
-            {
180
-              //Action when migrate down
181
-
182
-            }
183
-        }
184
-        EOF;
185
-    }
186
-}
Please login to merge, or discard this patch.
src/Env/Loader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
                 continue;
169 169
             }
170 170
 
171
-            $value = preg_replace_callback('~\$\{(\w+)\}~', function ($m) {
171
+            $value = preg_replace_callback('~\$\{(\w+)\}~', function($m) {
172 172
                 return (null === $ref = Env::get($m[1], null)) ? $m[0] : $ref;
173 173
             }, $value);
174 174
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class Loader
56 56
  * @package Platine\Framework\Env
57 57
  */
58
-class Loader
59
-{
58
+class Loader {
60 59
     /**
61 60
      * Put the parsed key value pair into
62 61
      * $_ENV super global.
Please login to merge, or discard this patch.
src/Env/Env.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -116,12 +116,12 @@
 block discarded – undo
116 116
         $options = 0
117 117
     ) {
118 118
         static $special = [
119
-          'true' => true,
120
-          'TRUE' => true,
121
-          'false' => false,
122
-          'FALSE' => false,
123
-          'null' => null,
124
-          'NULL' => null,
119
+            'true' => true,
120
+            'TRUE' => true,
121
+            'false' => false,
122
+            'FALSE' => false,
123
+            'null' => null,
124
+            'NULL' => null,
125 125
         ];
126 126
 
127 127
         // strlen($value) < 6.
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * @class Env
53 53
  * @package Platine\Framework\Env
54 54
  */
55
-class Env
56
-{
55
+class Env {
57 56
 
58 57
     /**
59 58
      * Get the environment variable by its key/name.
Please login to merge, or discard this patch.