diff --git a/integrations/parsely.php b/integrations/parsely.php index d6897656af..cf44d8cebd 100644 --- a/integrations/parsely.php +++ b/integrations/parsely.php @@ -44,15 +44,12 @@ public function wp_parsely_credentials_callback( $original_credentials ) { $config = $this->get_config(); $credentials = array(); - // If config provided by VIP is empty then take original credentials else take config. - if ( empty( $config ) ) { - $credentials = $original_credentials; - } else { - $credentials = array( - 'site_id' => $config['site_id'] ?? null, - 'api_secret' => $config['api_secret'] ?? null, - ); - } + // If config provided by VIP is empty then take original credentials else take + // credentials from config. + $credentials = empty( $config ) ? $original_credentials : array( + 'site_id' => $config['site_id'] ?? null, + 'api_secret' => $config['api_secret'] ?? null, + ); // Adds `is_managed` flag to indicate that platform is managing this integration // and we have to hide the credential banner warning or more.