@@ -11,10 +11,10 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\LIN3S\WPFoundation\Configuration\Acf; |
13 | 13 | |
14 | -use fixtures\LIN3S\WPFoundation\Acf; |
|
15 | 14 | use LIN3S\WPFoundation\Configuration\Acf\Acf as BaseAcf; |
16 | 15 | use LIN3S\WPFoundation\Configuration\Acf\AcfInterface; |
17 | 16 | use PhpSpec\ObjectBehavior; |
17 | +use fixtures\LIN3S\WPFoundation\Acf; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Custom ACF Wysiwyg class adding some useful features. |
@@ -11,10 +11,10 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\LIN3S\WPFoundation\Configuration\Login; |
13 | 13 | |
14 | -use fixtures\LIN3S\WPFoundation\Login; |
|
15 | 14 | use LIN3S\WPFoundation\Configuration\Login\Login as BaseLogin; |
16 | 15 | use LIN3S\WPFoundation\Configuration\Login\LoginInterface; |
17 | 16 | use PhpSpec\ObjectBehavior; |
17 | +use fixtures\LIN3S\WPFoundation\Login; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Spec of Login class. |
@@ -26,7 +26,7 @@ |
||
26 | 26 | public function wyswygToolbars() |
27 | 27 | { |
28 | 28 | return [ |
29 | - 'lin3s' => [1 => ['bold', 'italic', 'bullist', 'numlist', 'link', 'unlink']], |
|
29 | + 'lin3s' => [ 1 => [ 'bold', 'italic', 'bullist', 'numlist', 'link', 'unlink' ] ], |
|
30 | 30 | ]; |
31 | 31 | } |
32 | 32 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | public function __construct() |
27 | 27 | { |
28 | 28 | $customToolbars = $this->wyswygToolbars(); |
29 | - add_filter('acf/fields/wysiwyg/toolbars', function (array $toolbars) use ($customToolbars) { |
|
29 | + add_filter('acf/fields/wysiwyg/toolbars', function(array $toolbars) use ($customToolbars) { |
|
30 | 30 | return array_merge($toolbars, $customToolbars); |
31 | 31 | }); |
32 | 32 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $this->classes(); |
28 | 28 | $this->templateSelector(); |
29 | 29 | add_theme_support('post-thumbnails'); |
30 | - add_filter('timber_context', [$this, 'context']); |
|
30 | + add_filter('timber_context', [ $this, 'context' ]); |
|
31 | 31 | |
32 | 32 | // @deprecated since version 1.6, will be removed in 2.0. Extend the ACF class in your project and instantiate |
33 | 33 | // inside your project Theme. |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | private function templateSelector() |
41 | 41 | { |
42 | 42 | $self = $this; |
43 | - add_filter('theme_page_templates', function () use ($self) { |
|
44 | - return $self->templates([]); |
|
43 | + add_filter('theme_page_templates', function() use ($self) { |
|
44 | + return $self->templates([ ]); |
|
45 | 45 | }); |
46 | 46 | } |
47 | 47 | |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | protected function acf() |
53 | 53 | { |
54 | 54 | $customToolbars = [ |
55 | - 'lin3s' => [1 => ['bold', 'italic', 'bullist', 'numlist', 'link', 'unlink']], |
|
55 | + 'lin3s' => [ 1 => [ 'bold', 'italic', 'bullist', 'numlist', 'link', 'unlink' ] ], |
|
56 | 56 | ]; |
57 | 57 | |
58 | - add_filter('acf/fields/wysiwyg/toolbars', function (array $toolbars) use ($customToolbars) { |
|
58 | + add_filter('acf/fields/wysiwyg/toolbars', function(array $toolbars) use ($customToolbars) { |
|
59 | 59 | return array_merge($toolbars, $customToolbars); |
60 | 60 | }); |
61 | 61 | } |