@@ -60,8 +60,8 @@ |
||
60 | 60 | class RawTag extends AbstractBlock |
61 | 61 | { |
62 | 62 | /** |
63 | - * {@inheritdoc} |
|
64 | - */ |
|
63 | + * {@inheritdoc} |
|
64 | + */ |
|
65 | 65 | public function parse(array &$tokens): void |
66 | 66 | { |
67 | 67 | $lexer = new Lexer( |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class RawTag |
58 | 58 | * @package Platine\Template\Tag |
59 | 59 | */ |
60 | -class RawTag extends AbstractBlock |
|
61 | -{ |
|
60 | +class RawTag extends AbstractBlock { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -59,8 +59,8 @@ |
||
59 | 59 | class CommentTag extends AbstractBlock |
60 | 60 | { |
61 | 61 | /** |
62 | - * {@inheritdoc} |
|
63 | - */ |
|
62 | + * {@inheritdoc} |
|
63 | + */ |
|
64 | 64 | public function render(Context $context): string |
65 | 65 | { |
66 | 66 | return ''; |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class CommentTag |
57 | 57 | * @package Platine\Template\Tag |
58 | 58 | */ |
59 | -class CommentTag extends AbstractBlock |
|
60 | -{ |
|
59 | +class CommentTag extends AbstractBlock { |
|
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
63 | 62 | */ |
@@ -62,8 +62,7 @@ discard block |
||
62 | 62 | * @class FilterCollection |
63 | 63 | * @package Platine\Template\Parser |
64 | 64 | */ |
65 | -class FilterCollection |
|
66 | -{ |
|
65 | +class FilterCollection { |
|
67 | 66 | /** |
68 | 67 | * The list of filter with their name and class |
69 | 68 | * @var array<string, class-string> |
@@ -73,8 +72,7 @@ discard block |
||
73 | 72 | /** |
74 | 73 | * Create new instance |
75 | 74 | */ |
76 | - public function __construct() |
|
77 | - { |
|
75 | + public function __construct() { |
|
78 | 76 | $this->addFilter(ArrayFilter::class); |
79 | 77 | $this->addFilter(DatetimeFilter::class); |
80 | 78 | $this->addFilter(HtmlFilter::class); |
@@ -53,6 +53,5 @@ |
||
53 | 53 | * @class AbstractFilter |
54 | 54 | * @package Platine\Template\Parser |
55 | 55 | */ |
56 | -abstract class AbstractFilter |
|
57 | -{ |
|
56 | +abstract class AbstractFilter { |
|
58 | 57 | } |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class AbstractCondition |
57 | 57 | * @package Platine\Template\Parser |
58 | 58 | */ |
59 | -abstract class AbstractCondition extends AbstractBlock |
|
60 | -{ |
|
59 | +abstract class AbstractCondition extends AbstractBlock { |
|
61 | 60 | /** |
62 | 61 | * The current left variable to compare |
63 | 62 | * @var mixed |
@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * @class Context |
59 | 59 | * @package Platine\Template\Parser |
60 | 60 | */ |
61 | -class Context |
|
62 | -{ |
|
61 | +class Context { |
|
63 | 62 | /** |
64 | 63 | * The local scopes |
65 | 64 | * @var array<int, array<string, mixed>> |
@@ -103,8 +102,7 @@ discard block |
||
103 | 102 | * @param array<string, mixed> $assigns |
104 | 103 | * @param array<string, mixed> $registers |
105 | 104 | */ |
106 | - public function __construct(array $assigns = [], array $registers = []) |
|
107 | - { |
|
105 | + public function __construct(array $assigns = [], array $registers = []) { |
|
108 | 106 | $this->assigns = [$assigns]; |
109 | 107 | $this->registers = $registers; |
110 | 108 | $this->filters = new FilterCollection(); |
@@ -56,13 +56,13 @@ |
||
56 | 56 | * @package Platine\Template\Parser |
57 | 57 | * |
58 | 58 | */ |
59 | - /** |
|
60 | - * A drop is a class which allows you to export DOM like things to template. |
|
61 | - * Methods of drops are callable. |
|
62 | - * The main use for drops is the implement lazy loaded objects. |
|
63 | - * If you would like to make data available to the web designers which you don't |
|
64 | - * want loaded unless needed then a drop is a great way to do that. |
|
65 | - */ |
|
59 | + /** |
|
60 | + * A drop is a class which allows you to export DOM like things to template. |
|
61 | + * Methods of drops are callable. |
|
62 | + * The main use for drops is the implement lazy loaded objects. |
|
63 | + * If you would like to make data available to the web designers which you don't |
|
64 | + * want loaded unless needed then a drop is a great way to do that. |
|
65 | + */ |
|
66 | 66 | abstract class Drop implements Stringable |
67 | 67 | { |
68 | 68 | /** |
@@ -63,8 +63,7 @@ |
||
63 | 63 | * If you would like to make data available to the web designers which you don't |
64 | 64 | * want loaded unless needed then a drop is a great way to do that. |
65 | 65 | */ |
66 | -abstract class Drop implements Stringable |
|
67 | -{ |
|
66 | +abstract class Drop implements Stringable { |
|
68 | 67 | /** |
69 | 68 | * The context instance to use |
70 | 69 | * @var Context |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class Helper |
54 | 54 | * @package Platine\Template\Util |
55 | 55 | */ |
56 | -class Helper |
|
57 | -{ |
|
56 | +class Helper { |
|
58 | 57 | /** |
59 | 58 | * Normalize path |
60 | 59 | * @param string $path |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class Configuration |
56 | 56 | * @package Platine\Template |
57 | 57 | */ |
58 | -class Configuration extends AbstractConfiguration |
|
59 | -{ |
|
58 | +class Configuration extends AbstractConfiguration { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |