Passed
Pull Request — master (#258)
by
unknown
05:06
created
inc/timberLoader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 // Convert ACF Field of type relationship to a Timber\Post and add all ACF Fields of that Post
31 31
 add_filter('acf/format_value/type=relationship', NS . 'formatPostObject', 100);
32
-add_filter('get_twig', function ($twig) {
32
+add_filter('get_twig', function($twig) {
33 33
     $twig->addExtension(new TwigExtensionFlynt());
34 34
     return $twig;
35 35
 });
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 function formatGallery($value)
46 46
 {
47 47
     if (!empty($value)) {
48
-        $value = array_map(function ($image) {
48
+        $value = array_map(function($image) {
49 49
             return new Image($image);
50 50
         }, $value);
51 51
     }
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
     return $value;
71 71
 }
72 72
 
73
-add_action('timber/twig/filters', function ($twig) {
74
-    $twig->addFunction(new TwigFunction('placeholderImage', function ($width, $height, $color = null) {
73
+add_action('timber/twig/filters', function($twig) {
74
+    $twig->addFunction(new TwigFunction('placeholderImage', function($width, $height, $color = null) {
75 75
         $width = round($width);
76 76
         $height = round($height);
77 77
         $colorRect = $color ? "<rect width='{$width}' height='{$height}' style='fill:$color' />" : '';
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         return "data:image/svg+xml;base64," . base64_encode($svg);
80 80
     }));
81 81
 
82
-    $twig->addFunction(new TwigFunction('requireUrl', function ($asset) {
82
+    $twig->addFunction(new TwigFunction('requireUrl', function($asset) {
83 83
         return Asset::requireUrl($asset);
84 84
     }));
85 85
 
Please login to merge, or discard this patch.
inc/customizer-colors.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 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
     $wp_customize->add_section(
9 9
         'theme_colors',
10 10
         [
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     ));
123 123
 });
124 124
 
125
-add_action('wp_head', function () {
125
+add_action('wp_head', function() {
126 126
     ?>
127 127
         <style type="text/css">
128 128
             /* TODO: Remove this if there are no colors selected? */
Please login to merge, or discard this patch.