Passed
Push — develop ( 017b4f...b34b2a )
by Paul
03:08
created
src/GateKeeper.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,9 @@  discard block
 block discarded – undo
65 65
 	{
66 66
 		if( get_current_screen()->id != sprintf( 'settings_page_%s', $this->app->id )
67 67
 			|| filter_input( INPUT_GET, 'action' ) != 'activate'
68
-		)return;
68
+		) {
69
+			return;
70
+		}
69 71
 		$plugin = filter_input( INPUT_GET, 'plugin' );
70 72
 		check_admin_referer( 'activate-plugin_' . $plugin );
71 73
 		$result = activate_plugin( $plugin, null, is_network_admin(), true );
@@ -221,7 +223,9 @@  discard block
 block discarded – undo
221 223
 	public function hasPendingDependencies()
222 224
 	{
223 225
 		foreach( static::DEPENDENCIES as $plugin => $data ) {
224
-			if( !$this->isPluginDependency( $plugin ))continue;
226
+			if( !$this->isPluginDependency( $plugin )) {
227
+				continue;
228
+			}
225 229
 			$this->isPluginActive( $plugin );
226 230
 			$this->isPluginVersionValid( $plugin );
227 231
 		}
@@ -236,7 +240,9 @@  discard block
 block discarded – undo
236 240
 		if( get_current_screen()->id != 'settings_page_pollux'
237 241
 			|| $this->app->config->disable_config
238 242
 			|| !$this->hasPendingDependencies()
239
-		)return;
243
+		) {
244
+			return;
245
+		}
240 246
 
241 247
 		$plugins = '';
242 248
 		$actions = '';
Please login to merge, or discard this patch.