Completed
Pull Request — master (#14)
by Gorka
12:44 queued 10:15
created
src/LIN3S/WPFoundation/Login.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         margin-top: 0;
51 51
     }
52 52
 </style>
53
-EOL;
53
+eol;
54 54
     }
55 55
 
56 56
     public function title() : string
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
 
28 28
     public function __construct()
29 29
     {
30
-        add_filter('login_errors', [$this, 'errors']);
31
-        add_action('login_enqueue_scripts', [$this, 'logo']);
32
-        add_filter('login_message', [$this, 'message']);
33
-        add_filter('login_headertitle', [$this, 'title']);
34
-        add_filter('login_headerurl', [$this, 'url']);
30
+        add_filter('login_errors', [ $this, 'errors' ]);
31
+        add_action('login_enqueue_scripts', [ $this, 'logo' ]);
32
+        add_filter('login_message', [ $this, 'message' ]);
33
+        add_filter('login_headertitle', [ $this, 'title' ]);
34
+        add_filter('login_headerurl', [ $this, 'url' ]);
35 35
     }
36 36
 
37 37
     public function logo() : void
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/Translations/TranslatorTwigFunction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@
 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.
src/LIN3S/WPFoundation/PostTypes/PostType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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/CustomPostType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 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/Taxonomy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@
 block discarded – undo
27 27
 
28 28
     public function __construct()
29 29
     {
30
-        add_action('init', function () {
30
+        add_action('init', function() {
31 31
             register_taxonomy(
32
-                [$this, 'name'],
33
-                [$this, 'associatedPostType'],
34
-                [$this, 'options']
32
+                [ $this, 'name' ],
33
+                [ $this, 'associatedPostType' ],
34
+                [ $this, 'options' ]
35 35
             );
36 36
         });
37
-        add_filter('term_link', [$this, 'permalink'], 1, 2);
37
+        add_filter('term_link', [ $this, 'permalink' ], 1, 2);
38 38
     }
39 39
 
40 40
     public function permalink(string $url, string $term) : string
Please login to merge, or discard this patch.
src/LIN3S/WPFoundation/Widgets/Widget.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 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.
src/LIN3S/WPFoundation/Widgets/WidgetArea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 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/Menus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 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.