Completed
Push — master ( 43b774...ec4329 )
by Beñat
06:42 queued 03:18
created
spec/LIN3S/WPFoundation/Configuration/Acf/AcfSpec.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
spec/LIN3S/WPFoundation/Configuration/Login/LoginSpec.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
fixtures/LIN3S/WPFoundation/Acf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/Configuration/Acf/Acf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/Configuration/Theme/Theme.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.