@@ -77,7 +77,9 @@ |
||
| 77 | 77 | */ |
| 78 | 78 | public function deactivate( $plugin ) |
| 79 | 79 | { |
| 80 | - if( $this->isValid() )return; |
|
| 80 | + if( $this->isValid() ) { |
|
| 81 | + return; |
|
| 82 | + } |
|
| 81 | 83 | $pluginSlug = plugin_basename( $this->file ); |
| 82 | 84 | if( $plugin == $pluginSlug ) { |
| 83 | 85 | $this->redirect(); //exit |
@@ -62,7 +62,9 @@ |
||
| 62 | 62 | */ |
| 63 | 63 | protected function initInstructions() |
| 64 | 64 | { |
| 65 | - if( !$this->showInstructions() )return; |
|
| 65 | + if( !$this->showInstructions() ) { |
|
| 66 | + return; |
|
| 67 | + } |
|
| 66 | 68 | return [ |
| 67 | 69 | 'infodiv' => [ |
| 68 | 70 | 'context' => 'side', |
@@ -3,7 +3,9 @@ |
||
| 3 | 3 | defined( 'WP_UNINSTALL_PLUGIN' ) || die; |
| 4 | 4 | |
| 5 | 5 | require_once __DIR__.'/pollux.php'; |
| 6 | -if( !(new GL_Plugin_Check_v3( __FILE__ ))->isValid() )return; |
|
| 6 | +if( !(new GL_Plugin_Check_v3( __FILE__ ))->isValid() ) { |
|
| 7 | + return; |
|
| 8 | +} |
|
| 7 | 9 | |
| 8 | 10 | delete_option( GeminiLabs\Pollux\Config\Config::id() ); |
| 9 | 11 | delete_option( GeminiLabs\Pollux\PostType\Archive::id() ); |
@@ -21,7 +21,9 @@ |
||
| 21 | 21 | if( !class_exists( 'GL_Plugin_Check_v3' )) { |
| 22 | 22 | require_once __DIR__.'/activate.php'; |
| 23 | 23 | } |
| 24 | -if( !(new GL_Plugin_Check_v3( __FILE__ ))->canProceed() )return; |
|
| 24 | +if( !(new GL_Plugin_Check_v3( __FILE__ ))->canProceed() ) { |
|
| 25 | + return; |
|
| 26 | +} |
|
| 25 | 27 | require_once __DIR__.'/autoload.php'; |
| 26 | 28 | require_once __DIR__.'/helpers.php'; |
| 27 | 29 | require_once __DIR__.'/thirdparty.php'; |