Completed
Push — master ( 2cd2f5...45c44e )
by Beñat
02:26
created
spec/Configuration/Translations/TranslationsSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace spec\LIN3S\WPFoundation\Configuration\Translations;
13 13
 
14 14
 use LIN3S\WordPressPhpSpecBridge\ObjectBehavior;
15
-use Prophecy\Argument;
16 15
 
17 16
 /**
18 17
  * Spec of Translations class.
Please login to merge, or discard this patch.
spec/Configuration/Theme/ThemeSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
spec/Twig/TagManagerTwigSpec.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
36 36
 '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
37 37
 })(window,document,'script','dataLayer','GTM-XXXXXX');</script>
38
-EOT
38
+eot
39 39
         );
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
spec/fixtures/Theme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function templates($templates)
34 34
     {
35
-        return array_merge($templates, ['dummy-template' => 'DummyTemplate']);
35
+        return array_merge($templates, [ 'dummy-template' => 'DummyTemplate' ]);
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
src/Ajax/Ajax.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function __construct()
33 33
     {
34
-        add_action('wp_ajax_nopriv_' . $this->action, [$this, 'ajax']);
35
-        add_action('wp_ajax_' . $this->action, [$this, 'ajax']);
34
+        add_action('wp_ajax_nopriv_' . $this->action, [ $this, 'ajax' ]);
35
+        add_action('wp_ajax_' . $this->action, [ $this, 'ajax' ]);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/Configuration/Assets/Assets.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function __construct()
27 27
     {
28
-        add_action('wp_enqueue_scripts', [$this, 'assets']);
29
-        add_action('admin_enqueue_scripts', [$this, 'adminAssets']);
28
+        add_action('wp_enqueue_scripts', [ $this, 'assets' ]);
29
+        add_action('admin_enqueue_scripts', [ $this, 'adminAssets' ]);
30 30
     }
31 31
 
32 32
     /**
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     protected function addScript(
52 52
         $name,
53 53
         $from = AssetsInterface::ASSETS_JS,
54
-        array $dependencies = ['jquery'],
54
+        array $dependencies = [ 'jquery' ],
55 55
         $version = '1.0.0',
56 56
         $inFooter = true
57 57
     )
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     protected function addStylesheet(
77 77
         $name,
78 78
         $from = AssetsInterface::CSS,
79
-        array $dependencies = [],
79
+        array $dependencies = [ ],
80 80
         $version = '1.0.0',
81 81
         $media = 'all'
82 82
     )
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
         array $dependencies = ['jquery'],
55 55
         $version = '1.0.0',
56 56
         $inFooter = true
57
-    )
58
-    {
57
+    ) {
59 58
         wp_enqueue_script($name, $this->path($from, $name), $dependencies, $version, $inFooter);
60 59
 
61 60
         return $this;
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
         array $dependencies = [],
80 79
         $version = '1.0.0',
81 80
         $media = 'all'
82
-    )
83
-    {
81
+    ) {
84 82
         wp_enqueue_style($name, $this->path($from, $name, 'css'), $dependencies, $version, $media);
85 83
 
86 84
         return $this;
Please login to merge, or discard this patch.
src/Configuration/Mailer/Mailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Configuration/Menus/Menus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Configuration/Theme/Theme.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $this->classes();
28 28
         add_theme_support('post-thumbnails');
29
-        add_filter('timber_context', [$this, 'context']);
30
-        add_filter('template_selector_available', [$this, 'templates']);
29
+        add_filter('timber_context', [ $this, 'context' ]);
30
+        add_filter('template_selector_available', [ $this, 'templates' ]);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.