Skip to content

Commit

Permalink
Fixed: codefactor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thanghv committed Jun 17, 2024
1 parent dc39254 commit bea7d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/class-mainwp-clone-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,11 @@ public function get_config_contents() {
$zipRes = $zip->open( $this->file );

// Check if the ZIP file was successfully opened.
if ( $zipRes === true ) {
if ( true !== $zipRes ) {
// Try to get the content of 'clone/config.txt' from the ZIP file.
$content = $zip->getFromName( 'clone/config.txt' );
// Check if the content was successfully retrieved.
if ( $content !== false ) {
if ( false !== $content ) {
$zip->close();
return $content;
}
Expand Down

0 comments on commit bea7d7e

Please sign in to comment.