@@ -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 | } |
@@ -29,6 +29,9 @@ |
||
29 | 29 | return $output; |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $componentName |
|
34 | + */ |
|
32 | 35 | public function renderComponent(Twig_Environment $env, $context, $componentName, $data = [], $withContext = true, $ignoreMissing = false, $sandboxed = false) |
33 | 36 | { |
34 | 37 | $data = $this->getComponentData($data, $componentName); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | return $output; |
28 | 28 | } |
29 | 29 | |
30 | - // this action needs to be removed by the user if they want to overwrite this functionality |
|
30 | + // this action needs to be removed by the user if they want to overwrite this functionality |
|
31 | 31 | public static function loadFunctionsFile($componentName) |
32 | 32 | { |
33 | 33 | $componentManager = ComponentManager::getInstance(); |
@@ -15,20 +15,20 @@ |
||
15 | 15 | return self::$instance; |
16 | 16 | } |
17 | 17 | |
18 | - /** |
|
19 | - * clone |
|
20 | - * |
|
21 | - * Prevent cloning with 'protected' keyword |
|
22 | - **/ |
|
18 | + /** |
|
19 | + * clone |
|
20 | + * |
|
21 | + * Prevent cloning with 'protected' keyword |
|
22 | + **/ |
|
23 | 23 | protected function __clone() |
24 | 24 | { |
25 | 25 | } |
26 | 26 | |
27 | - /** |
|
28 | - * constructor |
|
29 | - * |
|
30 | - * Prevent instantiation with 'protected' keyword |
|
31 | - **/ |
|
27 | + /** |
|
28 | + * constructor |
|
29 | + * |
|
30 | + * Prevent instantiation with 'protected' keyword |
|
31 | + **/ |
|
32 | 32 | protected function __construct() |
33 | 33 | { |
34 | 34 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * |
16 | 16 | * @since 0.1.0 |
17 | 17 | * |
18 | - * @param string $feature Name of the feature. |
|
18 | + * @param string $featureName Name of the feature. |
|
19 | 19 | * |
20 | 20 | * @return array|null Returns an array of options or null if the feature wasn't found. |
21 | 21 | */ |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @since 0.1.0 |
34 | 34 | * |
35 | - * @param string $feature Name of the feature. |
|
35 | + * @param string $featureName Name of the feature. |
|
36 | 36 | * @param string $key The option key. |
37 | 37 | * |
38 | 38 | * @return mixed|null Returns the option or null if the option / the feature doesn't exist. |
@@ -63,11 +63,11 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @since 0.1.0 |
65 | 65 | * |
66 | - * @param string $feature Name of the feature. |
|
66 | + * @param string $featureName Name of the feature. |
|
67 | 67 | * @param string $basePath The feature base path. |
68 | 68 | * @param array $options An array of options. Optional. |
69 | 69 | * |
70 | - * @return boolean |
|
70 | + * @return boolean|null |
|
71 | 71 | */ |
72 | 72 | public static function register($featureName, $basePath, $options = []) |
73 | 73 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | add_filter('the_password_form', function ($output) { |
9 | 9 | $context = Timber::get_context(); |
10 | 10 | $context['form'] = [ |
11 | - 'url' => site_url('/wp-login.php?action=postpass', 'login_post') |
|
11 | + 'url' => site_url('/wp-login.php?action=postpass', 'login_post') |
|
12 | 12 | ]; |
13 | 13 | |
14 | 14 | return Timber::fetch('index.twig', $context); |