@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | protected string $permission; |
68 | 68 | |
69 | 69 | /** |
70 | - * {@inheritdoc} |
|
71 | - */ |
|
70 | + * {@inheritdoc} |
|
71 | + */ |
|
72 | 72 | public function __construct(string $markup, &$tokens, Parser $parser) |
73 | 73 | { |
74 | 74 | $lexer = new Lexer('/(\w+)/'); |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * {@inheritdoc} |
|
88 | - */ |
|
87 | + * {@inheritdoc} |
|
88 | + */ |
|
89 | 89 | public function render(Context $context): string |
90 | 90 | { |
91 | 91 | if ($context->hasKey($this->permission)) { |
@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * @class PermissionTag |
59 | 59 | * @package Platine\Framework\Template\Tag |
60 | 60 | */ |
61 | -class PermissionTag extends AbstractBlock |
|
62 | -{ |
|
61 | +class PermissionTag extends AbstractBlock { |
|
63 | 62 | /** |
64 | 63 | * The code of the permission |
65 | 64 | * @var string |
@@ -69,8 +68,7 @@ discard block |
||
69 | 68 | /** |
70 | 69 | * {@inheritdoc} |
71 | 70 | */ |
72 | - public function __construct(string $markup, &$tokens, Parser $parser) |
|
73 | - { |
|
71 | + public function __construct(string $markup, &$tokens, Parser $parser) { |
|
74 | 72 | $lexer = new Lexer('/(\w+)/'); |
75 | 73 | if ($lexer->match($markup)) { |
76 | 74 | $this->permission = $lexer->getStringMatch(1); |
@@ -58,8 +58,8 @@ |
||
58 | 58 | class AuthTag extends AbstractBlock |
59 | 59 | { |
60 | 60 | /** |
61 | - * {@inheritdoc} |
|
62 | - */ |
|
61 | + * {@inheritdoc} |
|
62 | + */ |
|
63 | 63 | public function render(Context $context): string |
64 | 64 | { |
65 | 65 | /** @var AuthenticationInterface $authentication */ |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class AuthTag |
56 | 56 | * @package Platine\Framework\Template\Tag |
57 | 57 | */ |
58 | -class AuthTag extends AbstractBlock |
|
59 | -{ |
|
58 | +class AuthTag extends AbstractBlock { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |