Skip to content

Commit

Permalink
Fix Errors Phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Feb 22, 2023
1 parent 525914a commit 621cc6e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions includes/RestApi/PluginsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,15 @@ public function set_site_features( \WP_REST_Request $request ) {
foreach ( $plugins as $plugin => $decision ) {
if ( $decision ) {
// If the Plugin exists and is activated
if ( PluginInstaller::exists( $plugin, $decision ) )
if ( PluginInstaller::exists( $plugin, $decision ) ) {
continue;

}

// If the Plugin is already in queue
$position_in_queue = PluginInstallTaskManager::status( $plugin );
if ( false !== $position_in_queue )
if ( false !== $position_in_queue ) {
continue;
}

PluginInstallTaskManager::add_to_queue(
new PluginInstallTask(
Expand Down

0 comments on commit 621cc6e

Please sign in to comment.