Passed
Pull Request — master (#289)
by Dominik
08:21 queued 04:23
created
lib/Init.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
         $pluginUrl = esc_url(admin_url('plugins.php'));
54 54
         $message = ["${pluginName} plugin not activated. Make sure you activate the plugin on the <a href=\"${pluginUrl}\">plugin page</a>."];
55 55
         $options = [
56
-          'type' => 'error',
57
-          'title' => 'Flynt is missing a required plugin',
58
-          'dismissible' => false,
56
+            'type' => 'error',
57
+            'title' => 'Flynt is missing a required plugin',
58
+            'dismissible' => false,
59 59
         ];
60 60
 
61 61
         $manager->addNotice($message, $options);
Please login to merge, or discard this 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
         if (!$acfActive) {
36 36
             self::notifyRequiredPluginIsMissing('<a href="https://www.advancedcustomfields.com/pro/">Advanced Custom Fields PRO</a>');
37
-            add_filter('template_include', function () {
37
+            add_filter('template_include', function() {
38 38
                 die(
39 39
                     'One or more required plugins are not activated! Please <a href="'
40 40
                     . esc_url(admin_url('plugins.php'))
Please login to merge, or discard this patch.
inc/theme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-add_action('after_setup_theme', function () {
3
+add_action('after_setup_theme', function() {
4 4
     add_theme_support('title-tag');
5 5
     add_theme_support('post-thumbnails');
6 6
 
Please login to merge, or discard this patch.
lib/Utils/Log.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $title .= '(' . self::getCallerFile(2) . '):';
70 70
             $type = gettype($data);
71 71
             $output = json_encode($data);
72
-            $result =  "<script>console.{$logType}('{$title}', '({$type})', {$output});</script>\n";
72
+            $result = "<script>console.{$logType}('{$title}', '({$type})', {$output});</script>\n";
73 73
             self::echoDebug($result, $postpone);
74 74
         }
75 75
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     protected static function echoDebug($data, $postpone)
111 111
     {
112 112
         if ($postpone) {
113
-            add_action('wp_footer', function () use ($data) {
113
+            add_action('wp_footer', function() use ($data) {
114 114
                 echo $data;
115 115
             }, 30);
116 116
         } else {
Please login to merge, or discard this patch.
inc/removeEditor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 namespace Flynt\RemoveEditor;
8 8
 
9
-add_action('init', function () {
9
+add_action('init', function() {
10 10
     remove_post_type_support('page', 'editor');
11 11
     remove_post_type_support('post', 'editor');
12 12
 });
Please login to merge, or discard this patch.
inc/hideProtectedPosts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 namespace Flynt\HideProtectedPosts;
8 8
 
9
-add_action('pre_get_posts', function ($query) {
9
+add_action('pre_get_posts', function($query) {
10 10
     if (!$query->is_singular() && !is_admin()) {
11 11
         $query->set('has_password', false);
12 12
     }
Please login to merge, or discard this patch.
inc/mimeTypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 namespace Flynt\MimeTypes;
8 8
 
9
-add_filter('upload_mimes', function ($mimes) {
9
+add_filter('upload_mimes', function($mimes) {
10 10
     $mimes['svg'] = 'image/svg+xml';
11 11
     return $mimes;
12 12
 });
Please login to merge, or discard this patch.
inc/theContentFix.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     }
16 16
 }
17 17
 
18
-add_filter('wp_insert_post_data', function ($data, $postArr) {
18
+add_filter('wp_insert_post_data', function($data, $postArr) {
19 19
     if (
20 20
         in_array(
21 21
             $postArr['post_type'],
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     return $data;
38 38
 }, 99, 2);
39 39
 
40
-add_shortcode('flyntTheContent', function ($attrs) {
40
+add_shortcode('flyntTheContent', function($attrs) {
41 41
     $postId = $attrs['id'];
42 42
     // in case the post id was not set correctly and is 0
43 43
     if (!empty($postId)) {
Please login to merge, or discard this patch.
Components/NavigationMain/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 use Timber;
6 6
 use Flynt\Utils\Asset;
7 7
 
8
-add_action('init', function () {
8
+add_action('init', function() {
9 9
     register_nav_menus([
10 10
         'navigation_main' => __('Navigation Main', 'flynt')
11 11
     ]);
12 12
 });
13 13
 
14
-add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) {
14
+add_filter('Flynt/addComponentData?name=NavigationMain', function($data) {
15 15
     $data['menu'] = new Timber\Menu('navigation_main');
16 16
     $data['logo'] = [
17 17
         'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('Components/NavigationMain/Assets/logo.svg'),
Please login to merge, or discard this patch.
inc/customizer-logo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Add theme options to customizer
5 5
  */
6 6
 
7
-add_action('customize_register', function ($wp_customize) {
7
+add_action('customize_register', function($wp_customize) {
8 8
     // Add option to replace header logo
9 9
     $wp_customize->add_setting(
10 10
         'custom_header_logo',
Please login to merge, or discard this patch.