@@ -8,33 +8,33 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | class Renderer { |
| 10 | 10 | |
| 11 | - protected $loader; |
|
| 12 | - protected $twig; |
|
| 11 | + protected $loader; |
|
| 12 | + protected $twig; |
|
| 13 | 13 | |
| 14 | - public function __construct(string $path, array $options = []) |
|
| 15 | - { |
|
| 14 | + public function __construct(string $path, array $options = []) |
|
| 15 | + { |
|
| 16 | 16 | $this->loader = new Twig_Loader_Filesystem($path); |
| 17 | 17 | $this->twig = new Twig_Environment($loader, $options); |
| 18 | - } |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | |
| 22 | - public function getTwig() |
|
| 23 | - { |
|
| 24 | - return $this->twig; |
|
| 25 | - } |
|
| 22 | + public function getTwig() |
|
| 23 | + { |
|
| 24 | + return $this->twig; |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | 27 | public function addFilter(Twig_Filter $filter) |
| 28 | - { |
|
| 29 | - $this->twig->addFilter($filter); |
|
| 28 | + { |
|
| 29 | + $this->twig->addFilter($filter); |
|
| 30 | 30 | |
| 31 | - return $this; |
|
| 32 | - } |
|
| 31 | + return $this; |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - public function addExtension(Twig_ExtensionInterface $extension) |
|
| 35 | - { |
|
| 36 | - $this->twig->addExtension(new Project_Twig_Extension()); |
|
| 37 | - } |
|
| 34 | + public function addExtension(Twig_ExtensionInterface $extension) |
|
| 35 | + { |
|
| 36 | + $this->twig->addExtension(new Project_Twig_Extension()); |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | 39 | public function render() |
| 40 | 40 | { |
@@ -6,7 +6,8 @@ discard block |
||
| 6 | 6 | /** |
| 7 | 7 | * Renderer Class |
| 8 | 8 | */ |
| 9 | -class Renderer { |
|
| 9 | +class Renderer |
|
| 10 | +{ |
|
| 10 | 11 | |
| 11 | 12 | protected $loader; |
| 12 | 13 | protected $twig; |
@@ -25,7 +26,7 @@ discard block |
||
| 25 | 26 | } |
| 26 | 27 | |
| 27 | 28 | public function addFilter(Twig_Filter $filter) |
| 28 | - { |
|
| 29 | + { |
|
| 29 | 30 | $this->twig->addFilter($filter); |
| 30 | 31 | |
| 31 | 32 | return $this; |