@@ -42,13 +42,13 @@ |
||
| 42 | 42 | |
| 43 | 43 | function it_should_return_templates() |
| 44 | 44 | { |
| 45 | - $this->templates(['my-template' => 'MyTemplate'])->shouldReturn([ |
|
| 45 | + $this->templates([ 'my-template' => 'MyTemplate' ])->shouldReturn([ |
|
| 46 | 46 | 'my-template' => 'MyTemplate', 'dummy-template' => 'DummyTemplate' |
| 47 | 47 | ]); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | function it_should_return_context() |
| 51 | 51 | { |
| 52 | - $this->context(['heder-menu' => 'Header Menu'])->shouldReturn(['heder-menu' => 'Header Menu']); |
|
| 52 | + $this->context([ 'heder-menu' => 'Header Menu' ])->shouldReturn([ 'heder-menu' => 'Header Menu' ]); |
|
| 53 | 53 | } |
| 54 | 54 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | function let() |
| 25 | 25 | { |
| 26 | - $this->beConstructedWith([]); |
|
| 26 | + $this->beConstructedWith([ ]); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | function it_is_initializable() |
@@ -33,6 +33,6 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | function its_toolbars() |
| 35 | 35 | { |
| 36 | - $this->toolbars([])->shouldBeArray(); |
|
| 36 | + $this->toolbars([ ])->shouldBeArray(); |
|
| 37 | 37 | } |
| 38 | 38 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
| 37 | - add_action('phpmailer_init', [$this, 'mailer']); |
|
| 37 | + add_action('phpmailer_init', [ $this, 'mailer' ]); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function __construct() |
| 26 | 26 | { |
| 27 | - add_action('init', [$this, 'menus']); |
|
| 27 | + add_action('init', [ $this, 'menus' ]); |
|
| 28 | 28 | } |
| 29 | 29 | } |
@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | $this->acf(); |
| 30 | 30 | $this->classes(); |
| 31 | 31 | add_theme_support('post-thumbnails'); |
| 32 | - add_filter('timber_context', [$this, 'context']); |
|
| 33 | - add_filter('template_selector_available', [$this, 'templates']); |
|
| 32 | + add_filter('timber_context', [ $this, 'context' ]); |
|
| 33 | + add_filter('template_selector_available', [ $this, 'templates' ]); |
|
| 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 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | public function __construct($toolbars) |
| 28 | 28 | { |
| 29 | 29 | $this->toolbars = $toolbars; |
| 30 | - add_filter('acf/fields/wysiwyg/toolbars', [$this, 'toolbars']); |
|
| 30 | + add_filter('acf/fields/wysiwyg/toolbars', [ $this, 'toolbars' ]); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -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 | /** |
@@ -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 | } |
@@ -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; |