__callStatic() is now more verbose if NULL or an empty string was used.
Signed-off-by: Roland Häder <roland@mxchange.org>
// Init argument string
$argsString = '';
// Init argument string
$argsString = '';
- // Is it empty or an array?
- if (empty($args)) {
+ // Is it NULL, empty or an array?
+ if (is_null($args)) {
// No arguments
$argsString = 'NULL';
// No arguments
$argsString = 'NULL';
+ } elseif (empty($args)) {
+ // Empty arguments
+ $argsString = '(empty)';
} elseif (is_array($args)) {
// Some arguments are there
foreach ($args as $arg) {
} elseif (is_array($args)) {
// Some arguments are there
foreach ($args as $arg) {
*/
public static function hashScrypt ($password, $salt = false, $N = 16384, $r = 8, $p = 1)
{
*/
public static function hashScrypt ($password, $salt = false, $N = 16384, $r = 8, $p = 1)
{
- if ((!FrameworkConfiguration::getSelfInstance()->isConfigurationEntrySet('extension_scrypt_loaded')) || (FrameworkConfiguration::getSelfInstance()->getConfigEntry('extension_scrypt_loaded') === FALSE)) {
+ if (!FrameworkFeature::isFeatureAvailable('hubcoin_reward')) {
// Feature has been disabled
throw new \InvalidArgumentException('Feature "scrypt" disabled.');
}
// Feature has been disabled
throw new \InvalidArgumentException('Feature "scrypt" disabled.');
}
- if ((!FrameworkConfiguration::getSelfInstance()->isConfigurationEntrySet('extension_scrypt_loaded')) || (FrameworkConfiguration::getSelfInstance()->getConfigEntry('extension_scrypt_loaded') === FALSE)) {
+ if (!FrameworkFeature::isFeatureAvailable('hubcoin_reward')) {
// Feature has been disabled
throw new \InvalidArgumentException('Feature "scrypt" disabled.');
}
// Feature has been disabled
throw new \InvalidArgumentException('Feature "scrypt" disabled.');
}