Skip to content

Commit

Permalink
return integer
Browse files Browse the repository at this point in the history
return integer instead of mixed
  • Loading branch information
alikon committed Aug 20, 2017
1 parent 5871d7a commit 2c942a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libraries/src/Installer/InstallerHelper.php
Expand Up @@ -340,7 +340,7 @@ public static function splitSql($query)
* @param string $packagefile Location of the package to be installed
* @param Installer $updateServerManifest Update Server manifest
*
* @return mixed boolean if the hashes match, null if hashes not found
* @return integer one if the hashes match, zero if hashes doesn't match, two if hashes not found
*
* @since __DEPLOY_VERSION__
*/
Expand All @@ -359,20 +359,20 @@ public static function isChecksumValid($packagefile, $updateServerManifest)
$hash_package = hash_file($hash, $packagefile);
$hash_remote = $update->$hash->_data;

$hashOnFile = true;
$hashOnFile = true;

if ($hash_package !== $hash_remote)
{
return false;
return 0;
}
}
}

if ($hashOnFile)
{
return true;
return 1;
}

return null;
return 2;
}
}

0 comments on commit 2c942a8

Please sign in to comment.