@@ -67,7 +67,9 @@ discard block |
||
| 67 | 67 | if( $screen->id != sprintf( 'settings_page_%s', $this->app->id ) |
| 68 | 68 | || $screen->pagenow != 'options-general.php' |
| 69 | 69 | || filter_input( INPUT_GET, 'action' ) != 'activate' |
| 70 | - )return; |
|
| 70 | + ) { |
|
| 71 | + return; |
|
| 72 | + } |
|
| 71 | 73 | $plugin = filter_input( INPUT_GET, 'plugin' ); |
| 72 | 74 | check_admin_referer( 'activate-plugin_' . $plugin ); |
| 73 | 75 | $result = activate_plugin( $plugin, null, is_network_admin(), true ); |
@@ -130,7 +132,9 @@ discard block |
||
| 130 | 132 | */ |
| 131 | 133 | public function getDependencyAction() |
| 132 | 134 | { |
| 133 | - if( get_current_screen()->id != 'settings_page_pollux' )return; |
|
| 135 | + if( get_current_screen()->id != 'settings_page_pollux' ) { |
|
| 136 | + return; |
|
| 137 | + } |
|
| 134 | 138 | |
| 135 | 139 | $action = filter_input( INPUT_GET, 'action' ); |
| 136 | 140 | $plugin = filter_input( INPUT_GET, 'plugin' ); |
@@ -245,7 +249,9 @@ discard block |
||
| 245 | 249 | public function hasPendingDependencies() |
| 246 | 250 | { |
| 247 | 251 | foreach( static::DEPENDENCIES as $plugin => $data ) { |
| 248 | - if( !$this->isPluginDependency( $plugin ))continue; |
|
| 252 | + if( !$this->isPluginDependency( $plugin )) { |
|
| 253 | + continue; |
|
| 254 | + } |
|
| 249 | 255 | $this->isPluginActive( $plugin ); |
| 250 | 256 | $this->isPluginVersionValid( $plugin ); |
| 251 | 257 | } |
@@ -260,7 +266,9 @@ discard block |
||
| 260 | 266 | if( get_current_screen()->id != 'settings_page_pollux' |
| 261 | 267 | || $this->app->config->disable_config |
| 262 | 268 | || !$this->hasPendingDependencies() |
| 263 | - )return; |
|
| 269 | + ) { |
|
| 270 | + return; |
|
| 271 | + } |
|
| 264 | 272 | |
| 265 | 273 | $plugins = ''; |
| 266 | 274 | $actions = ''; |