@@ -19,10 +19,10 @@ |
||
| 19 | 19 | use ContextTrait; |
| 20 | 20 | |
| 21 | 21 | public function __construct( |
| 22 | - public Mixin|string $name, |
|
| 22 | + public Mixin | string $name, |
|
| 23 | 23 | public mixed $value, |
| 24 | 24 | Context $context = null |
| 25 | - ) { |
|
| 25 | + ){ |
|
| 26 | 26 | $this->context = $context; |
| 27 | 27 | } |
| 28 | 28 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public bool $void = false; |
| 26 | 26 | |
| 27 | - public Mixin|string|null $name = null; |
|
| 27 | + public Mixin | string | null $name = null; |
|
| 28 | 28 | |
| 29 | 29 | /** @var Attr[] */ |
| 30 | 30 | public array $attrs = []; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function __construct( |
| 26 | 26 | public array $nodes = [] |
| 27 | - ) { |
|
| 27 | + ){ |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function setContext(Context $context = null): void |
@@ -17,9 +17,9 @@ |
||
| 17 | 17 | use ContextTrait; |
| 18 | 18 | |
| 19 | 19 | public function __construct( |
| 20 | - public string|int|float $content, |
|
| 20 | + public string | int | float $content, |
|
| 21 | 21 | Context $context = null |
| 22 | - ) { |
|
| 22 | + ){ |
|
| 23 | 23 | $this->context = $context; |
| 24 | 24 | } |
| 25 | 25 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | /** @internal */ |
| 24 | 24 | public array $tokens, |
| 25 | 25 | Context $context = null |
| 26 | - ) { |
|
| 26 | + ){ |
|
| 27 | 27 | $this->context = $context; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** @param TNode[] $nodes */ |
| 18 | 18 | public function __construct( |
| 19 | 19 | public array $nodes |
| 20 | - ) { |
|
| 20 | + ){ |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | string $message, |
| 16 | 16 | private Context $context, |
| 17 | 17 | \Throwable $previous = null |
| 18 | - ) { |
|
| 18 | + ){ |
|
| 19 | 19 | parent::__construct($message, 0, $previous); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function __construct( |
| 16 | 16 | string $message, |
| 17 | 17 | private readonly Token $token |
| 18 | - ) { |
|
| 18 | + ){ |
|
| 19 | 19 | $message = \sprintf('%s at offset %s', $message, $token->offset); |
| 20 | 20 | parent::__construct($message, 0, null); |
| 21 | 21 | } |
@@ -12,10 +12,10 @@ |
||
| 12 | 12 | |
| 13 | 13 | trait MixinTrait |
| 14 | 14 | { |
| 15 | - private function parseToken(Parser $parser, Token $token): Mixin|Raw|string |
|
| 15 | + private function parseToken(Parser $parser, Token $token): Mixin | Raw | string |
|
| 16 | 16 | { |
| 17 | - if ($token->tokens === []) { |
|
| 18 | - if ($token->type === Token::TYPE_RAW) { |
|
| 17 | + if ($token->tokens === []){ |
|
| 18 | + if ($token->type === Token::TYPE_RAW){ |
|
| 19 | 19 | return new Raw($token->content); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -14,8 +14,10 @@ |
||
| 14 | 14 | { |
| 15 | 15 | private function parseToken(Parser $parser, Token $token): Mixin|Raw|string |
| 16 | 16 | { |
| 17 | - if ($token->tokens === []) { |
|
| 18 | - if ($token->type === Token::TYPE_RAW) { |
|
| 17 | + if ($token->tokens === []) |
|
| 18 | + { |
|
| 19 | + if ($token->type === Token::TYPE_RAW) |
|
| 20 | + { |
|
| 19 | 21 | return new Raw($token->content); |
| 20 | 22 | } |
| 21 | 23 | |