Completed
Push — require-acf-plugin ( 5037e1 )
by Doğa
09:43 queued 04:24
created
lib/Bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
@@ -25,21 +25,21 @@  discard block
 block discarded – undo
25 25
         $acfActive = class_exists('acf');
26 26
 
27 27
         if (!$flyntCoreActive) {
28
-            add_action('admin_notices', function () {
28
+            add_action('admin_notices', function() {
29 29
                 echo '<div class="error"><p>Flynt Core Plugin not activated. Make sure you activate the plugin on the <a href="'
30 30
                     . esc_url(admin_url('plugins.php')) . '">plugin page</a>.</p></div>';
31 31
             });
32 32
         }
33 33
 
34 34
         if (!$acfActive) {
35
-            add_action('admin_notices', function () {
35
+            add_action('admin_notices', function() {
36 36
                 echo '<div class="error"><p>ACF Plugin not activated. Make sure you activate the plugin on the <a href="'
37 37
                     . esc_url(admin_url('plugins.php')) . '">plugin page</a>.</p></div>';
38 38
             });
39 39
         }
40 40
 
41 41
         if (!$acfActive || !$flyntCoreActive) {
42
-            add_filter('template_include', function () {
42
+            add_filter('template_include', function() {
43 43
                 $newTemplate = locate_template('plugin-inactive.php');
44 44
                 if ('' != $newTemplate) {
45 45
                     return $newTemplate;
Please login to merge, or discard this patch.