@@ -27,8 +27,8 @@ |
||
| 27 | 27 | { |
| 28 | 28 | parent::__construct(); |
| 29 | 29 | |
| 30 | - add_action('admin_init', [$this, 'addScreenAttributes']); |
|
| 31 | - add_action('admin_init', [$this, 'removeScreenAttributes']); |
|
| 30 | + add_action('admin_init', [ $this, 'addScreenAttributes' ]); |
|
| 31 | + add_action('admin_init', [ $this, 'removeScreenAttributes' ]); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function __construct() |
| 31 | 31 | { |
| 32 | - add_action('twig_apply_filters', function (\Twig_Environment $twig) { |
|
| 33 | - $twig->addFunction(new \Twig_SimpleFunction('trans', function ($key) { |
|
| 32 | + add_action('twig_apply_filters', function(\Twig_Environment $twig) { |
|
| 33 | + $twig->addFunction(new \Twig_SimpleFunction('trans', function($key) { |
|
| 34 | 34 | return Translations::trans($key); |
| 35 | 35 | })); |
| 36 | 36 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $this->classes(); |
| 31 | 31 | $this->templateSelector(); |
| 32 | 32 | add_theme_support('post-thumbnails'); |
| 33 | - add_filter('timber_context', [$this, 'context']); |
|
| 33 | + add_filter('timber_context', [ $this, 'context' ]); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | protected function acf() |
| 40 | 40 | { |
| 41 | 41 | new Wysiwyg([ |
| 42 | - 'lin3s' => [1 => ['bold', 'italic', 'bullist', 'numlist', 'link', 'unlink']], |
|
| 42 | + 'lin3s' => [ 1 => [ 'bold', 'italic', 'bullist', 'numlist', 'link', 'unlink' ] ], |
|
| 43 | 43 | ]); |
| 44 | 44 | } |
| 45 | 45 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $self = $this; |
| 52 | 52 | add_filter('theme_page_templates', function() use ($self) { |
| 53 | - return $self->templates([]); |
|
| 53 | + return $self->templates([ ]); |
|
| 54 | 54 | }); |
| 55 | 55 | } |
| 56 | 56 | } |