@@ -237,6 +237,7 @@ |
||
237 | 237 | * Split duration into seconds, minutes, hours, days, weeks and years. |
238 | 238 | * |
239 | 239 | * @param int $seconds |
240 | + * @param integer $max |
|
240 | 241 | * @return array |
241 | 242 | */ |
242 | 243 | protected function splitDuration($seconds, $max) |
@@ -13,19 +13,19 @@ discard block |
||
13 | 13 | |
14 | 14 | class PatternLabListener extends \PatternLab\Listener { |
15 | 15 | |
16 | - /** |
|
17 | - * Add the listeners for this plug-in |
|
18 | - */ |
|
19 | - public function __construct() { |
|
16 | + /** |
|
17 | + * Add the listeners for this plug-in |
|
18 | + */ |
|
19 | + public function __construct() { |
|
20 | 20 | |
21 | 21 | $this->addListener("twigPatternLoader.customize","addExtensions"); |
22 | 22 | |
23 | - } |
|
23 | + } |
|
24 | 24 | |
25 | - /** |
|
26 | - * Add the extensions to the appropriate instance |
|
27 | - */ |
|
28 | - public function addExtensions() { |
|
25 | + /** |
|
26 | + * Add the extensions to the appropriate instance |
|
27 | + */ |
|
28 | + public function addExtensions() { |
|
29 | 29 | |
30 | 30 | $instance = TwigUtil::getInstance(); |
31 | 31 | $instance->addExtension(new \Jasny\Twig\ArrayExtension()); |
@@ -34,6 +34,6 @@ discard block |
||
34 | 34 | $instance->addExtension(new \Jasny\Twig\TextExtension()); |
35 | 35 | TwigUtil::setInstance($instance); |
36 | 36 | |
37 | - } |
|
37 | + } |
|
38 | 38 | |
39 | 39 | } |