@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $this->countPlugins(); |
45 | 45 | |
46 | 46 | foreach (self::$cache['plugins'] as $plugin_file => $plugin_info) { |
47 | - include_once(WPMU_PLUGIN_DIR . '/' . $plugin_file); |
|
47 | + include_once(WPMU_PLUGIN_DIR.'/'.$plugin_file); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | $this->pluginHooks(); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | $this->updateCache(); // May as well update the transient cache whilst here. |
65 | 65 | |
66 | - self::$auto_plugins = array_map(function ($auto_plugin) { |
|
66 | + self::$auto_plugins = array_map(function($auto_plugin) { |
|
67 | 67 | $auto_plugin['Name'] .= ' *'; |
68 | 68 | return $auto_plugin; |
69 | 69 | }, self::$auto_plugins); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * After that, we can update the cache. |
93 | 93 | */ |
94 | 94 | private function updateCache() { |
95 | - require_once(ABSPATH . 'wp-admin/includes/plugin.php'); |
|
95 | + require_once(ABSPATH.'wp-admin/includes/plugin.php'); |
|
96 | 96 | |
97 | 97 | self::$auto_plugins = get_plugins(self::$relative_path); |
98 | 98 | self::$mu_plugins = get_mu_plugins(self::$relative_path); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | if (!is_array(self::$activated)) { return; } |
114 | 114 | |
115 | 115 | foreach (self::$activated as $plugin_file => $plugin_info) { |
116 | - do_action('activate_' . $plugin_file); |
|
116 | + do_action('activate_'.$plugin_file); |
|
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | private function validatePlugins() { |
124 | 124 | foreach (self::$cache['plugins'] as $plugin_file => $plugin_info) { |
125 | - if (!file_exists(WPMU_PLUGIN_DIR . '/' . $plugin_file)) { |
|
125 | + if (!file_exists(WPMU_PLUGIN_DIR.'/'.$plugin_file)) { |
|
126 | 126 | $this->updateCache(); |
127 | 127 | break; |
128 | 128 | } |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | $root_dir = dirname(__DIR__); |
5 | 5 | |
6 | 6 | /** @var string Document Root */ |
7 | -$webroot_dir = $root_dir . '/web'; |
|
7 | +$webroot_dir = $root_dir.'/web'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Expose global env() function from oscarotero/env |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * Use Dotenv to set required environment variables and load .env file in root |
16 | 16 | */ |
17 | 17 | $dotenv = new Dotenv\Dotenv($root_dir); |
18 | -if (file_exists($root_dir . '/.env')) { |
|
18 | +if (file_exists($root_dir.'/.env')) { |
|
19 | 19 | $dotenv->load(); |
20 | 20 | $dotenv->required(['DB_NAME', 'DB_USER', 'DB_PASSWORD', 'WP_HOME', 'WP_SITEURL']); |
21 | 21 | } |