@@ -62,15 +62,15 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | class IncrementTag extends AbstractTag |
| 64 | 64 | { |
| 65 | - /** |
|
| 66 | - * Name of the variable to increment |
|
| 67 | - * @var string |
|
| 68 | - */ |
|
| 65 | + /** |
|
| 66 | + * Name of the variable to increment |
|
| 67 | + * @var string |
|
| 68 | + */ |
|
| 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 |
||
| 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 |
@@ -89,8 +89,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 = ''; |
@@ -76,8 +76,8 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -95,8 +95,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 = ''; |
@@ -69,8 +69,8 @@ discard block |
||
| 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 |
||
| 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); |
@@ -82,8 +82,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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(); |
@@ -68,8 +68,8 @@ discard block |
||
| 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 |
||
| 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); |
@@ -66,16 +66,16 @@ |
||
| 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); |
@@ -106,8 +106,8 @@ discard block |
||
| 106 | 106 | protected int|string $start; |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | - * {@inheritdoc} |
|
| 110 | - */ |
|
| 109 | + * {@inheritdoc} |
|
| 110 | + */ |
|
| 111 | 111 | public function __construct(string $markup, array &$tokens, Parser $parser) |
| 112 | 112 | { |
| 113 | 113 | parent::__construct($markup, $tokens, $parser); |
@@ -143,8 +143,8 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * {@inheritdoc} |
|
| 147 | - */ |
|
| 146 | + * {@inheritdoc} |
|
| 147 | + */ |
|
| 148 | 148 | public function render(Context $context): string |
| 149 | 149 | { |
| 150 | 150 | if (!$context->hasRegister('for')) { |