@@ -40,7 +40,9 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function filterWordPressFooter( $text ) |
42 | 42 | { |
43 | - if( $this->app->config->remove_wordpress_footer )return; |
|
43 | + if( $this->app->config->remove_wordpress_footer ) { |
|
44 | + return; |
|
45 | + } |
|
44 | 46 | return $text; |
45 | 47 | } |
46 | 48 | |
@@ -79,7 +81,9 @@ discard block |
||
79 | 81 | */ |
80 | 82 | public function removeDashboardWidgets() |
81 | 83 | { |
82 | - if( !$this->app->config->remove_dashboard_widgets )return; |
|
84 | + if( !$this->app->config->remove_dashboard_widgets ) { |
|
85 | + return; |
|
86 | + } |
|
83 | 87 | $widgets = apply_filters( 'pollux/dashoard/widgets', [ |
84 | 88 | 'dashboard_primary', |
85 | 89 | 'dashboard_quick_press', |
@@ -95,7 +99,9 @@ discard block |
||
95 | 99 | */ |
96 | 100 | public function removeWordPressMenu() |
97 | 101 | { |
98 | - if( !$this->app->config->remove_wordpress_menu )return; |
|
102 | + if( !$this->app->config->remove_wordpress_menu ) { |
|
103 | + return; |
|
104 | + } |
|
99 | 105 | global $wp_admin_bar; |
100 | 106 | $wp_admin_bar->remove_menu( 'wp-logo' ); |
101 | 107 | } |
@@ -145,7 +151,8 @@ discard block |
||
145 | 151 | && $screen->pagenow == 'options-general.php' |
146 | 152 | && $this->app->gatekeeper->hasPendingDependencies() ) { |
147 | 153 | wp_enqueue_script( 'updates' ); |
148 | - add_filter( 'pollux/enqueue/js/localize/variables', function( $vars ) { |
|
154 | + add_filter( 'pollux/enqueue/js/localize/variables', function( $vars ) |
|
155 | + { |
|
149 | 156 | $vars['l10n'] = [ |
150 | 157 | 'pluginActivatingLabel' => __( 'Activating %s...', 'pollux' ), |
151 | 158 | 'pluginActivatedLabel' => __( '%s activated!', 'pollux' ), |