@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $this->fields(); |
| 28 | 28 | $this->connector(); |
| 29 | 29 | |
| 30 | - add_action('admin_init', [$this, 'removeScreenAttributes']); |
|
| 30 | + add_action('admin_init', [ $this, 'removeScreenAttributes' ]); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -26,12 +26,12 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function __construct() |
| 28 | 28 | { |
| 29 | - add_action('init', [$this, 'postType']); |
|
| 30 | - add_action('init', [$this, 'taxonomyType']); |
|
| 31 | - add_action('init', [$this, 'fields'], 20); |
|
| 29 | + add_action('init', [ $this, 'postType' ]); |
|
| 30 | + add_action('init', [ $this, 'taxonomyType' ]); |
|
| 31 | + add_action('init', [ $this, 'fields' ], 20); |
|
| 32 | 32 | |
| 33 | - add_filter('post_type_link', [$this, 'permalink'], 1, 2); |
|
| 34 | - add_filter('term_link', [$this, 'taxonomyPermalink'], 1, 2); |
|
| 33 | + add_filter('post_type_link', [ $this, 'permalink' ], 1, 2); |
|
| 34 | + add_filter('term_link', [ $this, 'taxonomyPermalink' ], 1, 2); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | if (is_array($postTypes)) { |
| 65 | 65 | foreach ($postTypes as $key => $postType) { |
| 66 | - $postTypes[$key] = static::singleSerialize($postType); |
|
| 66 | + $postTypes[ $key ] = static::singleSerialize($postType); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | return $postTypes; |
@@ -26,6 +26,6 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $this->rewriteRules(); |
| 28 | 28 | $this->rewriteTags(); |
| 29 | - add_action('template_include', [$this, 'templateInclude']); |
|
| 29 | + add_action('template_include', [ $this, 'templateInclude' ]); |
|
| 30 | 30 | } |
| 31 | 31 | } |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function __construct() |
| 30 | 30 | { |
| 31 | - add_action('twig_apply_filters', function ($twig) { |
|
| 32 | - $twig->addFunction(new \Twig_SimpleFunction('tagManager', [$this, 'tagManagerFunction'])); |
|
| 31 | + add_action('twig_apply_filters', function($twig) { |
|
| 32 | + $twig->addFunction(new \Twig_SimpleFunction('tagManager', [ $this, 'tagManagerFunction' ])); |
|
| 33 | 33 | |
| 34 | 34 | return $twig; |
| 35 | 35 | }); |
@@ -52,6 +52,6 @@ |
||
| 52 | 52 | j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
| 53 | 53 | '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
| 54 | 54 | })(window,document,'script','dataLayer','$tagManagerId');</script> |
| 55 | -EOT; |
|
| 55 | +eot; |
|
| 56 | 56 | } |
| 57 | 57 | } |
@@ -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 | /** |