Completed
Pull Request — master (#14)
by Beñat
07:31
created
src/LIN3S/WPFoundation/Menus.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace LIN3S\WPFoundation;
15 15
 
@@ -22,6 +22,6 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function __construct()
24 24
     {
25
-        add_action('init', [$this, 'menus']);
25
+        add_action('init', [ $this, 'menus' ]);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/Kernel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace LIN3S\WPFoundation;
15 15
 
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
         $this->register();
26 26
         $this->xmlrpc();
27 27
 
28
-        add_action('admin_head', [$this, 'adminHead']);
28
+        add_action('admin_head', [ $this, 'adminHead' ]);
29 29
 
30 30
         add_theme_support('post-thumbnails');
31 31
 
32
-        add_filter('theme_page_templates', [$this, 'templates']);
33
-        add_filter('timber_context', [$this, 'context']);
32
+        add_filter('theme_page_templates', [ $this, 'templates' ]);
33
+        add_filter('timber_context', [ $this, 'context' ]);
34 34
     }
35 35
 
36 36
     private function register() : void
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/AuthorizationChecker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace LIN3S\WPFoundation;
15 15
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $this->user = wp_get_current_user();
30 30
 
31 31
         if ($this->isNotAdmin()) {
32
-            add_filter('admin_menu', function () {
32
+            add_filter('admin_menu', function() {
33 33
                 remove_menu_page('profile.php');
34 34
                 remove_menu_page('tools.php');
35 35
                 remove_menu_page('options-general.php');
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/_PostTypes/Fields/Components/FieldComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         if (method_exists(static::class, 'definition')) {
30 30
             $definition = static::definition($aName);
31
-            $definition['location'] = $aConnector;
31
+            $definition[ 'location' ] = $aConnector;
32 32
             acf_add_local_field_group($definition);
33 33
         } else {
34 34
             //@deprecated Will be removed in 2.0, and this class will implement FieldComponentInterface
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/_PostTypes/Fields/CustomPostTypeFields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     {
28 28
         parent::__construct();
29 29
 
30
-        add_action('admin_init', [$this, 'addScreenAttributes']);
31
-        add_action('admin_init', [$this, 'removeScreenAttributes']);
30
+        add_action('admin_init', [ $this, 'addScreenAttributes' ]);
31
+        add_action('admin_init', [ $this, 'removeScreenAttributes' ]);
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/_PostTypes/Fields/Fields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
     public function components() : array
47 47
     {
48
-        return [];
48
+        return [ ];
49 49
     }
50 50
 
51 51
     public function addScreenAttributes() : void
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/_PostTypes/Fields/Templates/PageFields.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
         } elseif (isset($updatePostId)) {
38 38
             $postId = absint($updatePostId);
39 39
         } else {
40
-            add_action('add_meta_boxes', [$this, 'addMetaBox']);
40
+            add_action('add_meta_boxes', [ $this, 'addMetaBox' ]);
41 41
         }
42 42
         if (false === isset($postId) || $this->name === get_post_meta($postId, '_wp_page_template', true)) {
43
-            add_action('admin_init', [$this, 'addScreenAttributes']);
44
-            add_action('admin_init', [$this, 'removeScreenAttributes']);
43
+            add_action('admin_init', [ $this, 'addScreenAttributes' ]);
44
+            add_action('admin_init', [ $this, 'removeScreenAttributes' ]);
45 45
         }
46 46
     }
47 47
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         add_meta_box(
85 85
             'lin3s-id-default-meta-box',
86 86
             'LIN3S INFO',
87
-            [$this, 'metaBox'],
87
+            [ $this, 'metaBox' ],
88 88
             'page'
89 89
         );
90 90
     }
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/Translations/Translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace LIN3S\WPFoundation;
15 15
 
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/Translations/TranslatorTwigFunction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 use LIN3S\WPFoundation\Translations;
15 15
 use Twig\Environment;
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
 {
23 23
     public function __construct()
24 24
     {
25
-        add_action('twig_apply_filters', function (Environment $twig) {
25
+        add_action('twig_apply_filters', function(Environment $twig) {
26 26
             $twig->addFunction(
27
-                new TwigFunction('trans', function ($key) {
27
+                new TwigFunction('trans', function($key) {
28 28
                     return Translations::trans($key);
29 29
                 })
30 30
             );
Please login to merge, or discard this patch.