Added namespace backslash

This commit is contained in:
Rich Morgan 2015-01-05 15:52:59 -05:00
parent 8ec543dd54
commit cea830617b
1 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ class MagentoStorage implements StorageInterface
if (true === isset($config) && false === empty($config)) {
$config->saveConfig($key->getId(), $encryptedData);
} else {
Mage::helper('bitpay')->debugData('[ERROR] In file lib/Bitpay/Storage/MagentoStorage.php, class MagentoStorage::persist - Could not instantiate a \Mage_Core_Model_Config object.');
\Mage::helper('bitpay')->debugData('[ERROR] In file lib/Bitpay/Storage/MagentoStorage.php, class MagentoStorage::persist - Could not instantiate a \Mage_Core_Model_Config object.');
throw new Exception('[ERROR] In file lib/Bitpay/Storage/MagentoStorage.php, class MagentoStorage::persist - Could not instantiate a \Mage_Core_Model_Config object.');
}
}
@ -51,18 +51,18 @@ class MagentoStorage implements StorageInterface
* Not in database
*/
if (false === isset($entity) || true === empty($entity)) {
Mage::helper('bitpay')->debugData('[INFO] Call to MagentoStorage::load($id) with the id of ' . $id . ' did not return the store config parameter because it was not found in the database.');
\Mage::helper('bitpay')->debugData('[INFO] Call to MagentoStorage::load($id) with the id of ' . $id . ' did not return the store config parameter because it was not found in the database.');
return false;
}
$decodedEntity = unserialize(\Mage::helper('core')->decrypt($entity));
if (false === isset($decodedEntity) || true === empty($decodedEntity)) {
Mage::helper('bitpay')->debugData('[INFO] Call to MagentoStorage::load($id) with the id of ' . $id . ' could not decrypt & unserialize the entity ' . $entity . '.');
\Mage::helper('bitpay')->debugData('[INFO] Call to MagentoStorage::load($id) with the id of ' . $id . ' could not decrypt & unserialize the entity ' . $entity . '.');
return false;
}
Mage::helper('bitpay')->debugData('[INFO] Call to MagentoStorage::load($id) with the id of ' . $id . ' successfully decrypted & unserialized the entity ' . $entity . '.');
\Mage::helper('bitpay')->debugData('[INFO] Call to MagentoStorage::load($id) with the id of ' . $id . ' successfully decrypted & unserialized the entity ' . $entity . '.');
return $decodedEntity;
}