Completed
Pull Request — master (#223)
by Viktor
07:44 queued 01:29
created
inc/jquery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 use Flynt\Utils\Asset;
10 10
 
11
-add_action('wp_enqueue_scripts', function () {
11
+add_action('wp_enqueue_scripts', function() {
12 12
     $jqueryVersion = wp_scripts()->registered['jquery']->ver;
13 13
     wp_deregister_script('jquery');
14 14
 
Please login to merge, or discard this patch.
inc/componentLogServer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\');
12 12
 
13
-add_action('Flynt/afterRegisterComponents', function () {
13
+add_action('Flynt/afterRegisterComponents', function() {
14 14
     if ((WP_ENV === 'development' || current_user_can('editor') || current_user_can('administrator')) && isset($_GET['log'])) {
15 15
         if (isset($_GET['component']) && !empty($_GET['component'])) {
16 16
             define(__NAMESPACE__ . '\COMPONENT_WHITELIST', explode(',', $_GET['component']));
@@ -36,21 +36,21 @@  discard block
 block discarded – undo
36 36
 {
37 37
     $type = gettype($data);
38 38
     $output = json_encode($data);
39
-    $result =  "<script>console.log({$output});</script>\n";
39
+    $result = "<script>console.log({$output});</script>\n";
40 40
     echoDebug($result, $postpone);
41 41
 }
42 42
 
43 43
 function consoleTable($data, $postpone = true)
44 44
 {
45 45
     $output = json_encode($data);
46
-    $result =  "<script>console.table({$output});</script>\n";
46
+    $result = "<script>console.table({$output});</script>\n";
47 47
     echoDebug($result, $postpone);
48 48
 }
49 49
 
50 50
 function echoDebug($data, $postpone)
51 51
 {
52 52
     if ($postpone) {
53
-        add_action('wp_footer', function () use ($data) {
53
+        add_action('wp_footer', function() use ($data) {
54 54
             echo $data;
55 55
         }, 30);
56 56
     } else {
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
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  */
6 6
 namespace Flynt\HideProtectedPosts;
7 7
 
8
-add_action('pre_get_posts', function ($query) {
8
+add_action('pre_get_posts', function($query) {
9 9
     if (!$query->is_singular() && !is_admin()) {
10 10
         $query->set('has_password', false);
11 11
     }
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
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  */
5 5
 namespace Flynt\RemoveEditor;
6 6
 
7
-add_action('init', function () {
7
+add_action('init', function() {
8 8
     remove_post_type_support('page', 'editor');
9 9
     remove_post_type_support('post', 'editor');
10 10
 });
Please login to merge, or discard this patch.
inc/cleanRss.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  *
18 18
  * Don't return the default description in the RSS feed if it hasn't been changed
19 19
  */
20
-add_filter('get_bloginfo_rss', function ($bloginfo) {
20
+add_filter('get_bloginfo_rss', function($bloginfo) {
21 21
     $defaultTagline = 'Just another WordPress site';
22 22
     return ($bloginfo === $defaultTagline) ? '' : $bloginfo;
23 23
 });
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.
inc/cleanHead.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
  * Remove self-closing tag
29 29
  *
30 30
  */
31
-add_action('init', function () {
31
+add_action('init', function() {
32 32
     // Originally from http://wpengineer.com/1438/wordpress-header/
33 33
     remove_action('wp_head', 'feed_links_extra', 3);
34 34
     add_action('wp_head', 'ob_start', 1, 0);
35
-    add_action('wp_head', function () {
35
+    add_action('wp_head', function() {
36 36
         $pattern = '/.*' . preg_quote(esc_url(get_feed_link('comments_' . get_default_feed())), '/') . '.*[\r\n]+/';
37 37
         echo preg_replace($pattern, '', ob_get_clean());
38 38
     }, 3, 0);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
  *
61 61
  * Clean up output of stylesheet <link> tags
62 62
  */
63
-add_filter('style_loader_tag', function ($input) {
63
+add_filter('style_loader_tag', function($input) {
64 64
     preg_match_all(
65 65
         "!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!",
66 66
         $input,
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
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  */
5 5
 namespace Flynt\MimeTypes;
6 6
 
7
-add_filter('upload_mimes', function ($mimes) {
7
+add_filter('upload_mimes', function($mimes) {
8 8
     $mimes['svg'] = 'image/svg+xml';
9 9
     return $mimes;
10 10
 });
Please login to merge, or discard this patch.
lib/Utils/FileLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         if (count($files) === 0) {
58 58
             $dir = get_template_directory() . '/' . $dir;
59 59
 
60
-            self::iterateDir($dir, function ($file) {
60
+            self::iterateDir($dir, function($file) {
61 61
                 if ($file->isDir()) {
62 62
                     $dirPath = trim(str_replace(get_template_directory(), '', $file->getPathname()), '/');
63 63
                     self::loadPhpFiles($dirPath);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 }
68 68
             });
69 69
         } else {
70
-            array_walk($files, function ($file) use ($dir) {
70
+            array_walk($files, function($file) use ($dir) {
71 71
                 $filePath = $dir . '/' . ltrim($file, '/');
72 72
 
73 73
                 if (!locate_template($filePath, true, true)) {
Please login to merge, or discard this patch.