Completed
Push — require-acf-plugin ( bc6553...fa72ce )
by Doğa
09:59 queued 04:46
created
lib/Bootstrap.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
         return $acfActive && $flyntCoreActive;
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $pluginName
56
+     */
54 57
     protected static function notifyRequiredPluginIsMissing($pluginName)
55 58
     {
56 59
         add_action('admin_notices', function () {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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
     }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
53 53
 
54 54
     protected static function notifyRequiredPluginIsMissing($pluginName)
55 55
     {
56
-        add_action('admin_notices', function () {
56
+        add_action('admin_notices', function() {
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
         });
Please login to merge, or discard this patch.