@@ -9,8 +9,8 @@ |
||
9 | 9 | $context = Timber::get_context(); |
10 | 10 | $post = new Post(); |
11 | 11 | $context['form'] = [ |
12 | - 'url' => site_url('/wp-login.php?action=postpass', 'login_post'), |
|
13 | - 'inputId' => empty($post->id) ? mt_rand() : $post->id |
|
12 | + 'url' => site_url('/wp-login.php?action=postpass', 'login_post'), |
|
13 | + 'inputId' => empty($post->id) ? mt_rand() : $post->id |
|
14 | 14 | ]; |
15 | 15 | |
16 | 16 | return Timber::fetch('index.twig', $context); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * clone |
29 | 29 | * |
30 | 30 | * Prevent cloning with 'protected' keyword |
31 | - **/ |
|
31 | + **/ |
|
32 | 32 | protected function __clone() |
33 | 33 | { |
34 | 34 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * constructor |
38 | 38 | * |
39 | 39 | * Prevent instantiation with 'protected' keyword |
40 | - **/ |
|
40 | + **/ |
|
41 | 41 | protected function __construct() |
42 | 42 | { |
43 | 43 | } |
@@ -9,16 +9,16 @@ |
||
9 | 9 | |
10 | 10 | class TwigExtensionFlynt extends Twig_Extension { |
11 | 11 | |
12 | - public function getName() { |
|
13 | - return 'twig_extension_flynt'; |
|
14 | - } |
|
12 | + public function getName() { |
|
13 | + return 'twig_extension_flynt'; |
|
14 | + } |
|
15 | 15 | |
16 | - public function getFunctions() { |
|
17 | - return array( |
|
16 | + public function getFunctions() { |
|
17 | + return array( |
|
18 | 18 | new Twig_SimpleFunction('renderComponent', [$this, 'renderComponent'], array('needs_environment' => true, 'needs_context' => true, 'is_safe' => array('all'))), |
19 | 19 | new Twig_SimpleFunction('renderFlexibleContent', [$this, 'renderFlexibleContent'], array('needs_environment' => true, 'needs_context' => true, 'is_safe' => array('all'))), |
20 | - ); |
|
21 | - } |
|
20 | + ); |
|
21 | + } |
|
22 | 22 | |
23 | 23 | public function renderFlexibleContent(Twig_Environment $env, $context, $fields, $withContext = true, $ignoreMissing = false, $sandboxed = false) |
24 | 24 | { |