Completed
Pull Request — master (#14)
by Beñat
07:31
created
src/LIN3S/WPFoundation/PostTypes/CustomPostType.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\PostTypes;
15 15
 
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
     public function __construct()
26 26
     {
27 27
         parent::__construct();
28
-        add_action('init', function () {
28
+        add_action('init', function() {
29 29
             register_post_type(
30
-                [$this, 'name'],
31
-                [$this, 'options']
30
+                [ $this, 'name' ],
31
+                [ $this, 'options' ]
32 32
             );
33 33
         });
34 34
         $this->registerTaxonomy();
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/PostTypes/RewriteRules.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\PostTypes;
15 15
 
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $this->rewriteRules();
30 30
         $this->rewriteTags();
31
-        add_action('template_include', [$this, 'templateInclude']);
31
+        add_action('template_include', [ $this, 'templateInclude' ]);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/PostTypes/PostType.php 1 patch
Spacing   +5 added lines, -5 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\PostTypes;
15 15
 
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function __construct()
25 25
     {
26
-        add_action('init', [$this, 'registerFields'], 20);
27
-        add_action('init', [$this, 'rewriteRules'], 20);
28
-        add_filter('post_type_link', [$this, 'permalink'], 1, 2);
26
+        add_action('init', [ $this, 'registerFields' ], 20);
27
+        add_action('init', [ $this, 'rewriteRules' ], 20);
28
+        add_filter('post_type_link', [ $this, 'permalink' ], 1, 2);
29 29
     }
30 30
 
31 31
     public function registerFields() : void
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         if (is_array($postTypes)) {
47 47
             foreach ($postTypes as $key => $postType) {
48
-                $postTypes[$key] = static::singleSerialize($postType);
48
+                $postTypes[ $key ] = static::singleSerialize($postType);
49 49
             }
50 50
 
51 51
             return $postTypes;
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/PostTypes/CustomPostTypeOptions.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(stricttypes=1);
12
+declare(stricttypes = 1);
13 13
 
14 14
 namespace LIN3S\WPFoundation\PostTypes;
15 15
 
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/PostTypes/TaxonomyOptions.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\PostTypes;
15 15
 
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/Widgets/WidgetArea.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\Widgets;
15 15
 
@@ -22,6 +22,6 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function __construct()
24 24
     {
25
-        add_action('widgets_init', [$this, 'registerSidebar']);
25
+        add_action('widgets_init', [ $this, 'registerSidebar' ]);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/Widgets/Widget.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
 namespace LIN3S\WPFoundation\Widgets;
15 15
 
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 {
21 21
     public function __construct(string $id, string $name, string $description)
22 22
     {
23
-        parent::__construct($id, $name, ['description' => $description]);
24
-        add_action('widgets_init', [$this, 'registerWidget']);
23
+        parent::__construct($id, $name, [ 'description' => $description ]);
24
+        add_action('widgets_init', [ $this, 'registerWidget' ]);
25 25
     }
26 26
 
27 27
     public function name() : string
Please login to merge, or discard this patch.