Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Core/CoreConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class CoreConstants
* Current QuickBooks Namespace for PHP SDK
* @var int Deflate
*/
const NAMEPSACE_DATA_PREFIX = 'QuickBooksOnline\\API\\Data\\';
const NAMESPACE_DATA_PREFIX = 'QuickBooksOnline\\API\\Data\\';

/**
* OAuth 1 Mode constant.
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Http/Serialization/XmlObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ private static function PhpObjFromXml($className, $xmlStr)
$className = trim($className);
if (class_exists($className, CoreConstants::USE_AUTOLOADER)) {
$phpObj = new $className;
} elseif (class_exists(CoreConstants::NAMEPSACE_DATA_PREFIX . $className, CoreConstants::USE_AUTOLOADER)) {
$className = CoreConstants::NAMEPSACE_DATA_PREFIX . $className;
} elseif (class_exists(CoreConstants::NAMESPACE_DATA_PREFIX . $className, CoreConstants::USE_AUTOLOADER)) {
$className = CoreConstants::NAMESPACE_DATA_PREFIX . $className;
$phpObj = new $className;
} else {
throw new \Exception("Can't find corresponding CLASS for className" . $className . "during unmarshall XML into POPO Object");
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/FacadeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ private static function decorateKeyWithNameSpaceAndPrefix($key){
}

public static function simpleAppendClassNameSpace($key){
return CoreConstants::NAMEPSACE_DATA_PREFIX . CoreConstants::PHP_CLASS_PREFIX . $key;
return CoreConstants::NAMESPACE_DATA_PREFIX . CoreConstants::PHP_CLASS_PREFIX . $key;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Utility/MetadataExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function addNameSpaceToPotentialClassName($name)
$name = trim($name);
$lists = explode('\\', $name);
$ippEntityName = end($lists);
$ippEntityName = CoreConstants::NAMEPSACE_DATA_PREFIX . $ippEntityName;
$ippEntityName = CoreConstants::NAMESPACE_DATA_PREFIX . $ippEntityName;
return $ippEntityName;
}

Expand Down
4 changes: 2 additions & 2 deletions src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public function bindXml($xml, $model)
*/
if (class_exists($className, CoreConstants::USE_AUTOLOADER)) {
//Do nothing
} elseif (class_exists(CoreConstants::NAMEPSACE_DATA_PREFIX . $className)) {
$className = CoreConstants::NAMEPSACE_DATA_PREFIX . $className;
} elseif (class_exists(CoreConstants::NAMESPACE_DATA_PREFIX . $className)) {
$className = CoreConstants::NAMESPACE_DATA_PREFIX . $className;
} else {
throw new \Exception("Can't find corresponding CLASS for className" . $className . " in Bind.php");
}
Expand Down