Passed
Push — develop ( acf7d3...ede307 )
by nguereza
10:23
created
src/Tag/CaseTag.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
     protected mixed $right = null;
90 90
 
91 91
     /**
92
-    * {@inheritdoc}
93
-    */
92
+     * {@inheritdoc}
93
+     */
94 94
     public function __construct(string $markup, array &$tokens, Parser $parser)
95 95
     {
96 96
         parent::__construct($markup, $tokens, $parser);
@@ -107,16 +107,16 @@  discard block
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-    * {@inheritdoc}
111
-    */
110
+     * {@inheritdoc}
111
+     */
112 112
     protected function endTag(): void
113 113
     {
114 114
         $this->pushNodeList();
115 115
     }
116 116
 
117 117
     /**
118
-    * {@inheritdoc}
119
-    */
118
+     * {@inheritdoc}
119
+     */
120 120
     protected function unknownTag(string $tag, string $param, array $tokens): void
121 121
     {
122 122
         $whenLexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-    * {@inheritdoc}
153
-    */
152
+     * {@inheritdoc}
153
+     */
154 154
     public function render(Context $context): string
155 155
     {
156 156
         $output = '';
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
62 62
  * @class CaseTag
63 63
  * @package Platine\Template\Tag
64 64
  */
65
-class CaseTag extends AbstractCondition
66
-{
65
+class CaseTag extends AbstractCondition {
67 66
     /**
68 67
      * Stack of node list
69 68
      * @var array<int, array<int, mixed>>
@@ -91,8 +90,7 @@  discard block
 block discarded – undo
91 90
     /**
92 91
     * {@inheritdoc}
93 92
     */
94
-    public function __construct(string $markup, array &$tokens, Parser $parser)
95
-    {
93
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
96 94
         parent::__construct($markup, $tokens, $parser);
97 95
 
98 96
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
src/Tag/CycleTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
     protected array $variables = [];
77 77
 
78 78
     /**
79
-    * {@inheritdoc}
80
-    */
79
+     * {@inheritdoc}
80
+     */
81 81
     public function __construct(string $markup, array &$tokens, Parser $parser)
82 82
     {
83 83
         $lexerSimple = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
     /**
100
-    * {@inheritdoc}
101
-    */
100
+     * {@inheritdoc}
101
+     */
102 102
     public function render(Context $context): string
103 103
     {
104 104
         $context->push();
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class CycleTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class CycleTag extends AbstractTag
64
-{
63
+class CycleTag extends AbstractTag {
65 64
     /**
66 65
      * The name of the cycle; if none is given one
67 66
      * is created using the value list
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
     /**
79 78
     * {@inheritdoc}
80 79
     */
81
-    public function __construct(string $markup, array &$tokens, Parser $parser)
82
-    {
80
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
83 81
         $lexerSimple = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
84 82
         $lexerNamed = new Lexer('/(' . Token::QUOTED_FRAGMENT . ')\s*\:\s*(.*)/');
85 83
         if ($lexerNamed->match($markup)) {
Please login to merge, or discard this patch.
src/Tag/IncludeTag.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
     protected mixed $variable;
96 96
 
97 97
     /**
98
-    * {@inheritdoc}
99
-    */
98
+     * {@inheritdoc}
99
+     */
100 100
     public function __construct(string $markup, array &$tokens, Parser $parser)
101 101
     {
102 102
         $lexer = new Lexer(
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
     }
141 141
 
142 142
     /**
143
-    * {@inheritdoc}
144
-    */
143
+     * {@inheritdoc}
144
+     */
145 145
     public function parse(array &$tokens): void
146 146
     {
147 147
         $source = $this->parser->getLoader()->read($this->templateName);
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
 
166 166
 
167 167
     /**
168
-    * {@inheritdoc}
169
-    */
168
+     * {@inheritdoc}
169
+     */
170 170
     public function render(Context $context): string
171 171
     {
172 172
         $result = '';
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * @class IncludeTag
62 62
  * @package Platine\Template\Tag
63 63
  */
64
-class IncludeTag extends AbstractTag
65
-{
64
+class IncludeTag extends AbstractTag {
66 65
     /**
67 66
      * The name of the template
68 67
      * @var string
@@ -97,8 +96,7 @@  discard block
 block discarded – undo
97 96
     /**
98 97
     * {@inheritdoc}
99 98
     */
100
-    public function __construct(string $markup, array &$tokens, Parser $parser)
101
-    {
99
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
102 100
         $lexer = new Lexer(
103 101
             '/("[^"]+"|\'[^\']+\'|[^\'"\s]+)(\s+(with|for)\s+('
104 102
             . Token::QUOTED_FRAGMENT
Please login to merge, or discard this patch.
src/Tag/DebugTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     protected string $value;
70 70
 
71 71
     /**
72
-    * {@inheritdoc}
73
-    */
72
+     * {@inheritdoc}
73
+     */
74 74
     public function __construct(string $markup, array &$tokens, Parser $parser)
75 75
     {
76 76
         parent::__construct($markup, $tokens, $parser);
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
     }
88 88
 
89 89
     /**
90
-    * {@inheritdoc}
91
-    */
90
+     * {@inheritdoc}
91
+     */
92 92
     public function render(Context $context): string
93 93
     {
94 94
         $debugValue = $context->get($this->value);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class DebugTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class DebugTag extends AbstractTag
64
-{
63
+class DebugTag extends AbstractTag {
65 64
     /**
66 65
      * Value to debug
67 66
      * @var string
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, array &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
76 74
         parent::__construct($markup, $tokens, $parser);
77 75
 
78 76
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
src/Tag/ExtendsTag.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
     protected string $hash;
83 83
 
84 84
     /**
85
-    * {@inheritdoc}
86
-    */
85
+     * {@inheritdoc}
86
+     */
87 87
     public function __construct(string $markup, array &$tokens, Parser $parser)
88 88
     {
89 89
         $lexer = new Lexer('/("[^"]+"|\'[^\']+\')?/');
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
     }
105 105
 
106 106
     /**
107
-    * {@inheritdoc}
108
-    */
107
+     * {@inheritdoc}
108
+     */
109 109
     public function parse(array &$tokens): void
110 110
     {
111 111
         $source = $this->parser->getLoader()->read($this->templateName);
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
 
186 186
 
187 187
     /**
188
-    * {@inheritdoc}
189
-    */
188
+     * {@inheritdoc}
189
+     */
190 190
     public function render(Context $context): string
191 191
     {
192 192
         $context->push();
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * @class ExtendsTag
62 62
  * @package Platine\Template\Tag
63 63
  */
64
-class ExtendsTag extends AbstractTag
65
-{
64
+class ExtendsTag extends AbstractTag {
66 65
     /**
67 66
      * The name of the template
68 67
      * @var string
@@ -84,8 +83,7 @@  discard block
 block discarded – undo
84 83
     /**
85 84
     * {@inheritdoc}
86 85
     */
87
-    public function __construct(string $markup, array &$tokens, Parser $parser)
88
-    {
86
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
89 87
         $lexer = new Lexer('/("[^"]+"|\'[^\']+\')?/');
90 88
         if ($lexer->match($markup) && $lexer->isMatchNotNull(1)) {
91 89
             $this->templateName = substr(
Please login to merge, or discard this patch.
src/Tag/CaptureTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     protected string $variableName;
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function __construct(string $markup, array &$tokens, Parser $parser)
74 74
     {
75 75
         $lexer = new Lexer('/(\w+)/');
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
     }
86 86
 
87 87
     /**
88
-    * {@inheritdoc}
89
-    */
88
+     * {@inheritdoc}
89
+     */
90 90
     public function render(Context $context): string
91 91
     {
92 92
         $output = parent::render($context);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class CaptureTag
60 60
  * @package Platine\Template\Tag
61 61
  */
62
-class CaptureTag extends AbstractBlock
63
-{
62
+class CaptureTag extends AbstractBlock {
64 63
     /**
65 64
      * The name of the variable
66 65
      * @var string
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
     /**
71 70
     * {@inheritdoc}
72 71
     */
73
-    public function __construct(string $markup, array &$tokens, Parser $parser)
74
-    {
72
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
75 73
         $lexer = new Lexer('/(\w+)/');
76 74
         if ($lexer->match($markup)) {
77 75
             $this->variableName = $lexer->getStringMatch(1);
Please login to merge, or discard this patch.
src/Tag/IfchangedTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,16 +66,16 @@
 block discarded – undo
66 66
     protected string $lastValue = '';
67 67
 
68 68
     /**
69
-    * {@inheritdoc}
70
-    */
69
+     * {@inheritdoc}
70
+     */
71 71
     public function __construct(string $markup, array &$tokens, Parser $parser)
72 72
     {
73 73
         parent::__construct($markup, $tokens, $parser);
74 74
     }
75 75
 
76 76
     /**
77
-    * {@inheritdoc}
78
-    */
77
+     * {@inheritdoc}
78
+     */
79 79
     public function render(Context $context): string
80 80
     {
81 81
         $output = parent::render($context);
Please login to merge, or discard this 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 IfchangedTag
58 58
  * @package Platine\Template\Tag
59 59
  */
60
-class IfchangedTag extends AbstractBlock
61
-{
60
+class IfchangedTag extends AbstractBlock {
62 61
     /**
63 62
      * The last value
64 63
      * @var string
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
     /**
69 68
     * {@inheritdoc}
70 69
     */
71
-    public function __construct(string $markup, array &$tokens, Parser $parser)
72
-    {
70
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
73 71
         parent::__construct($markup, $tokens, $parser);
74 72
     }
75 73
 
Please login to merge, or discard this patch.
src/Tag/BlockTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
67 67
     protected string $blockName;
68 68
 
69 69
     /**
70
-    * {@inheritdoc}
71
-    */
70
+     * {@inheritdoc}
71
+     */
72 72
     public function __construct(string $markup, array &$tokens, Parser $parser)
73 73
     {
74 74
         $lexer = new Lexer('/(\w+)/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * @class BlockTag
59 59
  * @package Platine\Template\Tag
60 60
  */
61
-class BlockTag extends AbstractBlock
62
-{
61
+class BlockTag extends AbstractBlock {
63 62
     /**
64 63
      * The name of the block
65 64
      * @var string
@@ -69,8 +68,7 @@  discard block
 block discarded – undo
69 68
     /**
70 69
     * {@inheritdoc}
71 70
     */
72
-    public function __construct(string $markup, array &$tokens, Parser $parser)
73
-    {
71
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
74 72
         $lexer = new Lexer('/(\w+)/');
75 73
         if ($lexer->match($markup)) {
76 74
             $this->blockName = $lexer->getStringMatch(1);
Please login to merge, or discard this patch.
src/Tag/DecrementTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     protected string $name;
70 70
 
71 71
     /**
72
-    * {@inheritdoc}
73
-    */
72
+     * {@inheritdoc}
73
+     */
74 74
     public function __construct(string $markup, array &$tokens, Parser $parser)
75 75
     {
76 76
         $lexer = new Lexer('/(' . Token::VARIABLE_NAME . ')/');
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
     }
86 86
 
87 87
     /**
88
-    * {@inheritdoc}
89
-    */
88
+     * {@inheritdoc}
89
+     */
90 90
     public function render(Context $context): string
91 91
     {
92 92
         // if the value is not set in the environment check to see if it
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class DecrementTag
61 61
  * @package Platine\Template\Tag
62 62
  */
63
-class DecrementTag extends AbstractTag
64
-{
63
+class DecrementTag extends AbstractTag {
65 64
     /**
66 65
      * Name of the variable to decrement
67 66
      * @var string
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, array &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, array &$tokens, Parser $parser) {
76 74
         $lexer = new Lexer('/(' . Token::VARIABLE_NAME . ')/');
77 75
         if ($lexer->match($markup)) {
78 76
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.