@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | * @class Lexer |
56 | 56 | * @package Platine\Template\Parser |
57 | 57 | */ |
58 | -class Lexer implements Stringable |
|
59 | -{ |
|
58 | +class Lexer implements Stringable { |
|
60 | 59 | /** |
61 | 60 | * The lexer pattern |
62 | 61 | * @var string |
@@ -73,8 +72,7 @@ discard block |
||
73 | 72 | * Create new instance |
74 | 73 | * @param string $pattern |
75 | 74 | */ |
76 | - public function __construct(string $pattern) |
|
77 | - { |
|
75 | + public function __construct(string $pattern) { |
|
78 | 76 | $this->pattern = (substr($pattern, 0, 1) !== '/') |
79 | 77 | ? '/' . $this->quote($pattern) . '/' |
80 | 78 | : $pattern; |
@@ -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 | */ |
@@ -55,14 +55,12 @@ |
||
55 | 55 | * @class StringLoader |
56 | 56 | * @package Platine\Template\Loader |
57 | 57 | */ |
58 | -class StringLoader implements LoaderInterface |
|
59 | -{ |
|
58 | +class StringLoader implements LoaderInterface { |
|
60 | 59 | /** |
61 | 60 | * Create new instance |
62 | 61 | * @param array<string, string> $data The string hash data |
63 | 62 | */ |
64 | - public function __construct(protected array $data) |
|
65 | - { |
|
63 | + public function __construct(protected array $data) { |
|
66 | 64 | } |
67 | 65 | |
68 | 66 | /** |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class LoaderInterface |
54 | 54 | * @package Platine\Template\Loader |
55 | 55 | */ |
56 | -interface LoaderInterface |
|
57 | -{ |
|
56 | +interface LoaderInterface { |
|
58 | 57 | /** |
59 | 58 | * Return the template content to be use |
60 | 59 | * for parse and rendering |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | * @class FileLoader |
60 | 60 | * @package Platine\Template\Loader |
61 | 61 | */ |
62 | -class FileLoader implements LoaderInterface |
|
63 | -{ |
|
62 | +class FileLoader implements LoaderInterface { |
|
64 | 63 | /** |
65 | 64 | * The configuration instance |
66 | 65 | * @var Configuration |
@@ -77,8 +76,7 @@ discard block |
||
77 | 76 | * Create new instance |
78 | 77 | * @param Configuration|null $config |
79 | 78 | */ |
80 | - public function __construct(?Configuration $config = null) |
|
81 | - { |
|
79 | + public function __construct(?Configuration $config = null) { |
|
82 | 80 | $this->config = $config ?? new Configuration([]); |
83 | 81 | |
84 | 82 | $dir = $this->config->get('template_dir'); |
@@ -61,8 +61,7 @@ |
||
61 | 61 | * @class Template |
62 | 62 | * @package Platine\Template |
63 | 63 | */ |
64 | -class Template |
|
65 | -{ |
|
64 | +class Template { |
|
66 | 65 | /** |
67 | 66 | * The configuration instance |
68 | 67 | * @var Configuration |
@@ -39,6 +39,5 @@ |
||
39 | 39 | * @class NotFoundException |
40 | 40 | * @package Platine\Template\Exception |
41 | 41 | */ |
42 | -class NotFoundException extends LoaderException |
|
43 | -{ |
|
42 | +class NotFoundException extends LoaderException { |
|
44 | 43 | } |