| @@ -6,7 +6,7 @@ discard block | ||
| 6 | 6 |  { | 
| 7 | 7 | public static function setTemplateDirectory() | 
| 8 | 8 |      { | 
| 9 | -        add_action('after_switch_theme', function () { | |
| 9 | +        add_action('after_switch_theme', function() { | |
| 10 | 10 |              $stylesheet = get_option('stylesheet'); | 
| 11 | 11 | |
| 12 | 12 |              if (basename($stylesheet) !== 'templates') { | 
| @@ -14,7 +14,7 @@ discard block | ||
| 14 | 14 | } | 
| 15 | 15 | }); | 
| 16 | 16 | |
| 17 | -        add_filter('stylesheet', function ($stylesheet) { | |
| 17 | +        add_filter('stylesheet', function($stylesheet) { | |
| 18 | 18 | return dirname($stylesheet); | 
| 19 | 19 | }); | 
| 20 | 20 | } | 
| @@ -33,7 +33,7 @@ discard block | ||
| 33 | 33 | } | 
| 34 | 34 | |
| 35 | 35 |          if (!$acfActive || !$flyntCoreActive) { | 
| 36 | -            add_filter('template_include', function () { | |
| 36 | +            add_filter('template_include', function() { | |
| 37 | 37 |                  $newTemplate = locate_template('plugin-inactive.php'); | 
| 38 | 38 |                  if ('' != $newTemplate) { | 
| 39 | 39 | return $newTemplate; | 
| @@ -53,7 +53,7 @@ discard block | ||
| 53 | 53 | |
| 54 | 54 | protected static function notifyRequiredPluginIsMissing($pluginName) | 
| 55 | 55 |      { | 
| 56 | -        add_action('admin_notices', function () use ($pluginName) { | |
| 56 | +        add_action('admin_notices', function() use ($pluginName) { | |
| 57 | 57 |              echo "<div class=\"error\"><p>${pluginName} Plugin not activated. Make sure you activate the plugin on the <a href=\"" | 
| 58 | 58 |                  . esc_url(admin_url('plugins.php')) . "\">plugin page</a>.</p></div>"; | 
| 59 | 59 | }); |