@@ -19,9 +19,9 @@ |
||
19 | 19 | // return '/app/uploads'; |
20 | 20 | // }); |
21 | 21 | |
22 | -call_user_func(function () { |
|
22 | +call_user_func(function() { |
|
23 | 23 | if (apply_filters('Flynt/TimberDynamicResize/disable', false)) { |
24 | - add_action('timber/twig/filters', function ($twig) { |
|
24 | + add_action('timber/twig/filters', function($twig) { |
|
25 | 25 | $twig->addFilter( |
26 | 26 | new TwigFilter('resizeDynamic', ['Timber\ImageHelper', 'resize']) |
27 | 27 | ); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | { |
50 | 50 | add_filter('init', [$this, 'addRewriteTag']); |
51 | 51 | add_action('generate_rewrite_rules', [$this, 'registerRewriteRule']); |
52 | - add_action('parse_request', function ($wp) { |
|
52 | + add_action('parse_request', function($wp) { |
|
53 | 53 | if (isset($wp->query_vars[static::IMAGE_QUERY_VAR])) { |
54 | 54 | $this->generateImage($wp->query_vars[static::IMAGE_QUERY_VAR]); |
55 | 55 | } |
@@ -58,14 +58,14 @@ discard block |
||
58 | 58 | add_filter('mod_rewrite_rules', [$this, 'addRewriteRule']); |
59 | 59 | } |
60 | 60 | |
61 | - add_action('after_switch_theme', function () { |
|
61 | + add_action('after_switch_theme', function() { |
|
62 | 62 | add_action('shutdown', 'flush_rewrite_rules'); |
63 | 63 | }); |
64 | - add_action('switch_theme', function () { |
|
64 | + add_action('switch_theme', function() { |
|
65 | 65 | remove_filter('mod_rewrite_rules', [$this, 'addRewriteRule']); |
66 | 66 | flush_rewrite_rules(); |
67 | 67 | }); |
68 | - add_action('timber/twig/filters', function ($twig) { |
|
68 | + add_action('timber/twig/filters', function($twig) { |
|
69 | 69 | $twig->addFilter( |
70 | 70 | new TwigFilter('resizeDynamic', [$this, 'resizeDynamic']) |
71 | 71 | ); |