Test Failed
Push — develop ( a061b1...df8064 )
by nguereza
02:52
created
src/Template/Tag/RouteUrlTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $name;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +6 added lines, -8 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class RouteUrlTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class RouteUrlTag extends AbstractTag
63
-{
62
+class RouteUrlTag extends AbstractTag {
64 63
     /**
65 64
      * The name of the route
66 65
      * @var string
@@ -70,13 +69,12 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76
-        if ($lexer->match($markup)) {
74
+        if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
78 76
             $this->extractAttributes($markup);
79
-        } else {
77
+        } else {
80 78
             throw new ParseException(sprintf(
81 79
                 'Syntax Error in "%s" - Valid syntax: route_url [name] [PARAMETERS ...]',
82 80
                 'route_url'
@@ -90,8 +88,8 @@  discard block
 block discarded – undo
90 88
     public function render(Context $context): string
91 89
     {
92 90
         $parameters = [];
93
-        foreach ($this->attributes as $key => $value) {
94
-            if ($context->hasKey($value)) {
91
+        foreach ($this->attributes as $key => $value) {
92
+            if ($context->hasKey($value)) {
95 93
                 $value = (string) $context->get($value);
96 94
             }
97 95
 
Please login to merge, or discard this patch.
src/Template/Tag/LangTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $value;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class LangTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class LangTag extends AbstractTag
63
-{
62
+class LangTag extends AbstractTag {
64 63
     /**
65 64
      * Value to debug
66 65
      * @var string
@@ -70,12 +69,11 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76
-        if ($lexer->match($markup)) {
74
+        if ($lexer->match($markup)) {
77 75
             $this->value = $lexer->getStringMatch(0);
78
-        } else {
76
+        } else {
79 77
             throw new ParseException(sprintf(
80 78
                 'Syntax Error in "%s" - Valid syntax: tr [name]',
81 79
                 'tr'
@@ -88,7 +86,7 @@  discard block
 block discarded – undo
88 86
      */
89 87
     public function render(Context $context): string
90 88
     {
91
-        if ($context->hasKey($this->value)) {
89
+        if ($context->hasKey($this->value)) {
92 90
             $this->value = (string) $context->get($this->value);
93 91
         }
94 92
         /** @var Lang $lang */
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.
src/Template/Tag/StaticTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $path;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class StaticTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class StaticTag extends AbstractTag
63
-{
62
+class StaticTag extends AbstractTag {
64 63
     /**
65 64
      * The static path
66 65
      * @var string
@@ -70,12 +69,11 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76
-        if ($lexer->match($markup)) {
74
+        if ($lexer->match($markup)) {
77 75
             $this->path = $lexer->getStringMatch(0);
78
-        } else {
76
+        } else {
79 77
             throw new ParseException(sprintf(
80 78
                 'Syntax Error in "%s" - Valid syntax: static [PATH]',
81 79
                 'static'
Please login to merge, or discard this patch.
src/Template/Tag/SessionTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $name;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class SessionTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class SessionTag extends AbstractTag
63
-{
62
+class SessionTag extends AbstractTag {
64 63
     /**
65 64
      * The key of the session
66 65
      * @var string
@@ -70,12 +69,11 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76
-        if ($lexer->match($markup)) {
74
+        if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
78
-        } else {
76
+        } else {
79 77
             throw new ParseException(sprintf(
80 78
                 'Syntax Error in "%s" - Valid syntax: session [key]',
81 79
                 'session'
Please login to merge, or discard this patch.
src/Template/Tag/SessionFlashTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     protected string $name;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class SessionFlashTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class SessionFlashTag extends AbstractTag
63
-{
62
+class SessionFlashTag extends AbstractTag {
64 63
     /**
65 64
      * The key of the session
66 65
      * @var string
@@ -70,12 +69,11 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
76
-        if ($lexer->match($markup)) {
74
+        if ($lexer->match($markup)) {
77 75
             $this->name = $lexer->getStringMatch(0);
78
-        } else {
76
+        } else {
79 77
             throw new ParseException(sprintf(
80 78
                 'Syntax Error in "%s" - Valid syntax: session [key]',
81 79
                 'flash'
Please login to merge, or discard this patch.
src/Template/Tag/CsrfTag.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
  * @package Platine\Framework\Template\Tag
58 58
  * @template T
59 59
  */
60
-class CsrfTag extends AbstractTag
61
-{
60
+class CsrfTag extends AbstractTag {
62 61
     /**
63 62
      * {@inheritdoc}
64 63
      */
Please login to merge, or discard this patch.
src/Handler/Error/Renderer/AbstractErrorRenderer.php 1 patch
Braces   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * @class AbstractErrorRenderer
56 56
  * @package Platine\Framework\Handler\Error\Renderer
57 57
  */
58
-abstract class AbstractErrorRenderer implements ErrorRenderInterface
59
-{
58
+abstract class AbstractErrorRenderer implements ErrorRenderInterface {
60 59
     /**
61 60
      * The default error title
62 61
      * @var string
@@ -78,7 +77,7 @@  discard block
 block discarded – undo
78 77
      */
79 78
     protected function getErrorTitle(Throwable $exception): string
80 79
     {
81
-        if ($exception instanceof HttpException) {
80
+        if ($exception instanceof HttpException) {
82 81
             return $exception->getTitle();
83 82
         }
84 83
 
@@ -93,7 +92,7 @@  discard block
 block discarded – undo
93 92
      */
94 93
     protected function getErrorDescription(Throwable $exception): string
95 94
     {
96
-        if ($exception instanceof HttpException) {
95
+        if ($exception instanceof HttpException) {
97 96
             return $exception->getDescription();
98 97
         }
99 98
 
Please login to merge, or discard this patch.
src/Handler/Error/Renderer/XmlErrorRenderer.php 1 patch
Braces   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class XmlErrorRenderer
55 55
  * @package Platine\Framework\Handler\Error\Renderer
56 56
  */
57
-class XmlErrorRenderer extends AbstractErrorRenderer
58
-{
57
+class XmlErrorRenderer extends AbstractErrorRenderer {
59 58
     /**
60 59
      * {@inheritdoc}
61 60
      */
@@ -65,9 +64,9 @@  discard block
 block discarded – undo
65 64
         $xml .= '<error>';
66 65
         $xml .= '<message>' . $this->addCharacterData($exception->getMessage()) . '</message>';
67 66
 
68
-        if ($detail) {
67
+        if ($detail) {
69 68
             $xml .= '<exceptions>';
70
-            do {
69
+            do {
71 70
                 $xml .= $this->getExceptionXml($exception);
72 71
             } while ($exception = $exception->getPrevious());
73 72
             $xml .= '</exceptions>';
Please login to merge, or discard this patch.