@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class BreakTag |
57 | 57 | * @package Platine\Template\Tag |
58 | 58 | */ |
59 | -class BreakTag extends AbstractTag |
|
60 | -{ |
|
59 | +class BreakTag extends AbstractTag { |
|
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
63 | 62 | */ |
@@ -56,14 +56,12 @@ |
||
56 | 56 | * @class ApcCache |
57 | 57 | * @package Platine\Template\Cache |
58 | 58 | */ |
59 | -class ApcCache extends AbstractCache |
|
60 | -{ |
|
59 | +class ApcCache extends AbstractCache { |
|
61 | 60 | /** |
62 | 61 | * Create new instance |
63 | 62 | * @param Configuration|null $config |
64 | 63 | */ |
65 | - public function __construct(?Configuration $config = null) |
|
66 | - { |
|
64 | + public function __construct(?Configuration $config = null) { |
|
67 | 65 | parent::__construct($config); |
68 | 66 | |
69 | 67 | if ((!extension_loaded('apcu')) || !((bool) ini_get('apc.enabled'))) { |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class MemoryCache |
54 | 54 | * @package Platine\Template\Cache |
55 | 55 | */ |
56 | -class MemoryCache extends AbstractCache |
|
57 | -{ |
|
56 | +class MemoryCache extends AbstractCache { |
|
58 | 57 | /** |
59 | 58 | * The cache data |
60 | 59 | * @var array<string, mixed> |
@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | * @class AbstractCache |
56 | 56 | * @package Platine\Template\Cache |
57 | 57 | */ |
58 | -abstract class AbstractCache |
|
59 | -{ |
|
58 | +abstract class AbstractCache { |
|
60 | 59 | /** |
61 | 60 | * The cache expiration in second |
62 | 61 | * @var int |
@@ -79,8 +78,7 @@ discard block |
||
79 | 78 | * Create new instance |
80 | 79 | * @param Configuration|null $config |
81 | 80 | */ |
82 | - public function __construct(?Configuration $config = null) |
|
83 | - { |
|
81 | + public function __construct(?Configuration $config = null) { |
|
84 | 82 | $this->config = $config ?? new Configuration([]); |
85 | 83 | |
86 | 84 | $this->expire = $this->config->get('cache_expire'); |
@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @class FileCache |
58 | 58 | * @package Platine\Template\Cache |
59 | 59 | */ |
60 | -class FileCache extends AbstractCache |
|
61 | -{ |
|
60 | +class FileCache extends AbstractCache { |
|
62 | 61 | /** |
63 | 62 | * The cache directory to use |
64 | 63 | * @var string |
@@ -69,8 +68,7 @@ discard block |
||
69 | 68 | * Create new instance |
70 | 69 | * @param Configuration|null $config |
71 | 70 | */ |
72 | - public function __construct(?Configuration $config = null) |
|
73 | - { |
|
71 | + public function __construct(?Configuration $config = null) { |
|
74 | 72 | parent::__construct($config); |
75 | 73 | $dir = $this->config->get('cache_dir'); |
76 | 74 | $path = Helper::normalizePath($dir); |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class NullCache |
54 | 54 | * @package Platine\Template\Cache |
55 | 55 | */ |
56 | -class NullCache extends AbstractCache |
|
57 | -{ |
|
56 | +class NullCache extends AbstractCache { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | */ |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class HtmlFilter |
56 | 56 | * @package Platine\Template\Filter |
57 | 57 | */ |
58 | -class HtmlFilter extends AbstractFilter |
|
59 | -{ |
|
58 | +class HtmlFilter extends AbstractFilter { |
|
60 | 59 | /** |
61 | 60 | * Replace new line to <br /> |
62 | 61 | * @param mixed $variable |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class DatetimeFilter |
57 | 57 | * @package Platine\Template\Filter |
58 | 58 | */ |
59 | -class DatetimeFilter extends AbstractFilter |
|
60 | -{ |
|
59 | +class DatetimeFilter extends AbstractFilter { |
|
61 | 60 | /** |
62 | 61 | * Formats a date |
63 | 62 | * @param string|DateTimeInterface|int|null $variable |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * @class IncrementTag |
61 | 61 | * @package Platine\Template\Tag |
62 | 62 | */ |
63 | -class IncrementTag extends AbstractTag |
|
64 | -{ |
|
63 | +class IncrementTag extends AbstractTag { |
|
65 | 64 | /** |
66 | 65 | * Name of the variable to increment |
67 | 66 | * @var string |
@@ -71,8 +70,7 @@ discard block |
||
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); |