Test Failed
Push — develop ( 815500...0204ba )
by nguereza
02:34
created
src/Demo/Action/User/DetailAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
  *
17 17
  * @author tony
18 18
  */
19
-class DetailAction implements RequestHandlerInterface
20
-{
19
+class DetailAction implements RequestHandlerInterface {
21 20
 
22 21
     protected LoggerInterface $logger;
23 22
     protected UserRepository $userRepository;
Please login to merge, or discard this patch.
src/Demo/Action/User/ListAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
  *
15 15
  * @author tony
16 16
  */
17
-class ListAction implements RequestHandlerInterface
18
-{
17
+class ListAction implements RequestHandlerInterface {
19 18
     protected UserRepository $userRepository;
20 19
     protected Template $template;
21 20
 
Please login to merge, or discard this patch.
src/Demo/Action/User/LogoutAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
13 13
  *
14 14
  * @author tony
15 15
  */
16
-class LogoutAction implements RequestHandlerInterface
17
-{
16
+class LogoutAction implements RequestHandlerInterface {
18 17
 
19 18
     protected Session $session;
20 19
 
Please login to merge, or discard this patch.
src/Demo/Template/LangTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     protected string $value;
28 28
 
29 29
     /**
30
-    * {@inheritdoc}
31
-    */
30
+     * {@inheritdoc}
31
+     */
32 32
     public function __construct(string $markup, &$tokens, Parser $parser)
33 33
     {
34 34
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
  *
16 16
  * @author tony
17 17
  */
18
-class LangTag extends AbstractTag
19
-{
18
+class LangTag extends AbstractTag {
20 19
 
21 20
     /**
22 21
      * Value to debug
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
     /**
28 27
     * {@inheritdoc}
29 28
     */
30
-    public function __construct(string $markup, &$tokens, Parser $parser)
31
-    {
29
+    public function __construct(string $markup, &$tokens, Parser $parser) {
32 30
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
33 31
         if ($lexer->match($markup)) {
34 32
             $this->value = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Kernel/BaseKernel.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * class BaseKernel
54 54
  * @package Platine\Framework\Kernel
55 55
  */
56
-class BaseKernel
57
-{
56
+class BaseKernel {
58 57
 
59 58
     /**
60 59
      * Application instance
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * Create new instance
67 66
      * @param Application $app
68 67
      */
69
-    public function __construct(Application $app)
70
-    {
68
+    public function __construct(Application $app) {
71 69
         $this->app = $app;
72 70
     }
73 71
 
Please login to merge, or discard this patch.
src/Kernel/HttpKernel.php 1 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 HttpKernel
64 64
  * @package Platine\Framework\Kernel
65 65
  */
66
-class HttpKernel extends BaseKernel implements RequestHandlerInterface
67
-{
66
+class HttpKernel extends BaseKernel implements RequestHandlerInterface {
68 67
 
69 68
     /**
70 69
      * The router instance
@@ -83,8 +82,7 @@  discard block
 block discarded – undo
83 82
      * @param Application $app
84 83
      * @param Router $router
85 84
      */
86
-    public function __construct(Application $app, Router $router)
87
-    {
85
+    public function __construct(Application $app, Router $router) {
88 86
         parent::__construct($app);
89 87
         $this->router = $router;
90 88
     }
Please login to merge, or discard this patch.
src/Kernel/ConsoleKernel.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
  * class ConsoleKernel
58 58
  * @package Platine\Framework\Kernel
59 59
  */
60
-class ConsoleKernel extends BaseKernel
61
-{
60
+class ConsoleKernel extends BaseKernel {
62 61
 
63 62
     protected ConsoleApp $console;
64 63
 
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
      * @param Application $app
80 79
      * @param ConsoleApp $console
81 80
      */
82
-    public function __construct(Application $app, ConsoleApp $console)
83
-    {
81
+    public function __construct(Application $app, ConsoleApp $console) {
84 82
         parent::__construct($app);
85 83
         $this->console = $console;
86 84
     }
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
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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
     public function setRules(): void
33 33
     {
34 34
         $this->validator->addRules('username', [
35
-           new NotEmpty(),
36
-           new MinLength(3)
35
+            new NotEmpty(),
36
+            new MinLength(3)
37 37
         ]);
38 38
 
39 39
         $this->validator->addRules('password', [
40
-           new NotEmpty(),
40
+            new NotEmpty(),
41 41
         ]);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.