@@ -68,7 +68,9 @@ discard block |
||
68 | 68 | if( $screen->id != 'settings_page_pollux' |
69 | 69 | || $screen->pagenow != 'options-general.php' |
70 | 70 | || filter_input( INPUT_GET, 'action' ) != 'activate' |
71 | - )return; |
|
71 | + ) { |
|
72 | + return; |
|
73 | + } |
|
72 | 74 | check_admin_referer( 'activate-plugin_' . $plugin ); |
73 | 75 | $result = activate_plugin( $plugin, null, is_network_admin(), true ); |
74 | 76 | if( is_wp_error( $result )) { |
@@ -125,7 +127,9 @@ discard block |
||
125 | 127 | */ |
126 | 128 | public function getDependencyAction() |
127 | 129 | { |
128 | - if( get_current_screen()->id != 'settings_page_pollux' )return; |
|
130 | + if( get_current_screen()->id != 'settings_page_pollux' ) { |
|
131 | + return; |
|
132 | + } |
|
129 | 133 | |
130 | 134 | $action = filter_input( INPUT_GET, 'action' ); |
131 | 135 | $plugin = filter_input( INPUT_GET, 'plugin' ); |
@@ -240,7 +244,9 @@ discard block |
||
240 | 244 | public function hasPendingDependencies() |
241 | 245 | { |
242 | 246 | foreach( static::DEPENDENCIES as $plugin => $data ) { |
243 | - if( !$this->isPluginDependency( $plugin ))continue; |
|
247 | + if( !$this->isPluginDependency( $plugin )) { |
|
248 | + continue; |
|
249 | + } |
|
244 | 250 | $this->isPluginActive( $plugin ); |
245 | 251 | $this->isPluginVersionValid( $plugin ); |
246 | 252 | } |
@@ -255,7 +261,9 @@ discard block |
||
255 | 261 | if( get_current_screen()->id != 'settings_page_pollux' |
256 | 262 | || $this->app->config->disable_config |
257 | 263 | || !$this->hasPendingDependencies() |
258 | - )return; |
|
264 | + ) { |
|
265 | + return; |
|
266 | + } |
|
259 | 267 | |
260 | 268 | $plugins = ''; |
261 | 269 | $actions = ''; |