Test Failed
Push — develop ( 833877...64b6b0 )
by nguereza
02:36
created
src/Demo/Form/Param/AuthParam.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Platine\Framework\Demo\Form\Param;
4 4
 
5
-class AuthParam extends BaseParam
6
-{
5
+class AuthParam extends BaseParam {
7 6
     protected string $username;
8 7
 
9 8
     public function getUsername(): string
Please login to merge, or discard this patch.
src/Demo/Form/Param/BaseParam.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,15 +10,13 @@
 block discarded – undo
10 10
 
11 11
 use Platine\Stdlib\Helper\Str;
12 12
 
13
-class BaseParam
14
-{
13
+class BaseParam {
15 14
 
16 15
     /**
17 16
      * Create new instance
18 17
      * @param array<string, mixed> $data
19 18
      */
20
-    public function __construct(array $data = [])
21
-    {
19
+    public function __construct(array $data = []) {
22 20
         $params = array_merge($this->getDefault(), $data);
23 21
         $this->load($params);
24 22
     }
Please login to merge, or discard this patch.
src/Demo/Form/Validator/AbstractValidator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Platine\Validator\Validator;
6 6
 
7
-abstract class AbstractValidator
8
-{
7
+abstract class AbstractValidator {
9 8
     /**
10 9
      * The validator instance
11 10
      * @var Validator
@@ -22,8 +21,7 @@  discard block
 block discarded – undo
22 21
      * Create new instance
23 22
      * @param Validator|null $validator
24 23
      */
25
-    public function __construct(?Validator $validator = null)
26
-    {
24
+    public function __construct(?Validator $validator = null) {
27 25
         $this->validator = $validator ?? new Validator();
28 26
     }
29 27
 
Please login to merge, or discard this patch.
src/Demo/Form/Validator/AuthValidator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function setRules(): void
32 32
     {
33 33
         $this->validator->addRules('username', [
34
-           new NotEmpty(),
34
+            new NotEmpty(),
35 35
             new MinLength(3)
36 36
         ]);
37 37
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@  discard block
 block discarded – undo
7 7
 use Platine\Validator\Rule\NotEmpty;
8 8
 use Platine\Validator\Validator;
9 9
 
10
-class AuthValidator extends AbstractValidator
11
-{
10
+class AuthValidator extends AbstractValidator {
12 11
 
13 12
     protected AuthParam $param;
14 13
 
@@ -17,8 +16,7 @@  discard block
 block discarded – undo
17 16
      * @param AuthParam $param
18 17
      * @param Validator|null $validator
19 18
      */
20
-    public function __construct(AuthParam $param, ?Validator $validator = null)
21
-    {
19
+    public function __construct(AuthParam $param, ?Validator $validator = null) {
22 20
         parent::__construct($validator);
23 21
         $this->param = $param;
24 22
     }
Please login to merge, or discard this patch.
src/MyRequestHandler.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  *
21 21
  * @author tony
22 22
  */
23
-class MyRequestHandler implements RequestHandlerInterface
24
-{
23
+class MyRequestHandler implements RequestHandlerInterface {
25 24
 
26 25
     protected LoggerInterface $logger;
27 26
 
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
      * Create new instance
30 29
      * @param LoggerInterface $logger
31 30
      */
32
-    public function __construct(LoggerInterface $logger)
33
-    {
31
+    public function __construct(LoggerInterface $logger) {
34 32
         $this->logger = $logger;
35 33
     }
36 34
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $name = $request->getAttribute('name', 'Tony');
42 42
         $this->logger->info('User name is {name}', ['name' => $name]);
43 43
         $resp = new Response(200);
44
-        $resp->getBody()->write("Hello ${name}");
44
+        $resp->getBody()->write("hello ${name}");
45 45
 
46 46
         return $resp->withHeader('Framework', 'Platine PHP');
47 47
     }
Please login to merge, or discard this patch.