Permalink
Browse files

[UPDATE] blame previous update

[UPDATE] blame update "don't generate structs that don't contain any
attribute and don't inherit from generated struct" because some parent
classes may not contain any attribute
  • Loading branch information...
1 parent 650704a commit a66c597fbb9789db5f89e522e4704afefdccb63c @mikaelcom committed Jan 14, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 WsdlToPhpGenerator.php
View
@@ -634,7 +634,7 @@ private function generateStructsClasses($_rootDirectory,$_rootDirectoryRights)
unset($structTmp,$structsToGenerateDone);
foreach($structs as $structName=>$struct)
{
- if(!$struct->getIsStruct() || (count($struct->getAttributes()) ===0 && $struct->getInheritance() == ''))
+ if(!$struct->getIsStruct())
continue;
$elementFolder = $this->getDirectory($_rootDirectory,$_rootDirectoryRights,$struct->getCleanName());
$structsClassesFiles[] = $structClassFileName = $elementFolder . $struct->getPackagedName() . '.php';
@@ -2146,8 +2146,8 @@ private function getSubCategory($_string)
}
/**
* Get gather name class
- * @param string $_string element name
- * @return string
+ * @param string $_string element name
+ * @return string
*/
private function getGather($_string)
{

0 comments on commit a66c597

Please sign in to comment.