Completed
Push — require-acf-plugin ( 4090ee...bc6553 )
by Doğa
05:18 queued 27s
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
         add_action('admin_notices', function () {
56 59
             echo "<div class=\"error\"><p>${pluginName} Plugin not activated. Make sure you activate the plugin on the <a href=\""
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;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     }
53 53
 
54 54
     protected static function notifyRequiredPluginIsMissing($pluginName) {
55
-        add_action('admin_notices', function () {
55
+        add_action('admin_notices', function() {
56 56
             echo "<div class=\"error\"><p>${pluginName} Plugin not activated. Make sure you activate the plugin on the <a href=\""
57 57
                 . esc_url(admin_url('plugins.php')) . "\">plugin page</a>.</p></div>";
58 58
         });
Please login to merge, or discard this patch.