@@ -29,8 +29,8 @@ |
||
29 | 29 | */ |
30 | 30 | public function __construct() |
31 | 31 | { |
32 | - add_action('twig_apply_filters', function ($twig) { |
|
33 | - $twig->addFunction(new \Twig_SimpleFunction('trans', function ($key) { |
|
32 | + add_action('twig_apply_filters', function($twig) { |
|
33 | + $twig->addFunction(new \Twig_SimpleFunction('trans', function($key) { |
|
34 | 34 | return Translations::trans($key); |
35 | 35 | })); |
36 | 36 |
@@ -24,6 +24,6 @@ |
||
24 | 24 | */ |
25 | 25 | public function __construct() |
26 | 26 | { |
27 | - add_action('widgets_init', [$this, 'widgetArea']); |
|
27 | + add_action('widgets_init', [ $this, 'widgetArea' ]); |
|
28 | 28 | } |
29 | 29 | } |
@@ -27,9 +27,9 @@ |
||
27 | 27 | */ |
28 | 28 | public function __construct($id, $name, $description) |
29 | 29 | { |
30 | - parent::__construct($id, $name, ['description' => $description]); |
|
30 | + parent::__construct($id, $name, [ 'description' => $description ]); |
|
31 | 31 | |
32 | - add_action('widgets_init', [$this, 'register']); |
|
32 | + add_action('widgets_init', [ $this, 'register' ]); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function __construct() |
41 | 41 | { |
42 | - $this->components = []; |
|
42 | + $this->components = [ ]; |
|
43 | 43 | |
44 | 44 | $this->fields(); |
45 | 45 | $this->connector(); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | if (isset($postId)) { |
63 | 63 | if ($this->name === get_post_meta($postId, '_wp_page_template', true)) { |
64 | - add_action('admin_init', [$this, 'removeScreenAttributes']); |
|
64 | + add_action('admin_init', [ $this, 'removeScreenAttributes' ]); |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | } |