Completed
Push — master ( 5ba7f7...a2a0a6 )
by Beñat
8s
created
src/LIN3S/WPFoundation/Widgets/Areas/WidgetArea.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('widgets_init', [$this, 'widgetArea']);
27
+        add_action('widgets_init', [ $this, 'widgetArea' ]);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/PostTypes/PostType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/PostTypes/Fields/Templates/PageFields.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  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, 'removeScreenAttributes']);
43
+            add_action('admin_init', [ $this, 'removeScreenAttributes' ]);
44 44
         }
45 45
     }
46 46
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         add_meta_box(
84 84
             'lin3s-id-default-meta-box',
85 85
             'LIN3S INFO',
86
-            [$this, 'metaBox'],
86
+            [ $this, 'metaBox' ],
87 87
             'page'
88 88
         );
89 89
     }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,6 +99,6 @@
 block discarded – undo
99 99
 <h1 style="text-align: center;">
100 100
     PLEASE ADD <strong>PAGE TITLE</strong> AND SELECT A TEMPLATE IN THE <strong>TEMPLATE SELECTOR</strong>
101 101
 </h1>
102
-EOF;
102
+eof;
103 103
     }
104 104
 }
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
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
      */
31 31
     public function components()
32 32
     {
33
-        return [];
33
+        return [ ];
34 34
     }
35 35
 }
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(get_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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $this->fields();
28 28
         $this->connector();
29 29
 
30
-        add_action('admin_init', [$this, 'removeScreenAttributes']);
30
+        add_action('admin_init', [ $this, 'removeScreenAttributes' ]);
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/PostTypes/RewriteRules/RewriteRules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
     {
27 27
         $this->rewriteRules();
28 28
         $this->rewriteTags();
29
-        add_action('template_include', [$this, 'templateInclude']);
29
+        add_action('template_include', [ $this, 'templateInclude' ]);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/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.
fixtures/LIN3S/WPFoundation/Fields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
      */
31 31
     public function components()
32 32
     {
33
-        return [];
33
+        return [ ];
34 34
     }
35 35
 }
Please login to merge, or discard this patch.