|
@@ -394,7 +394,7 @@ class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
|
|
|
|
|
|
|
|
// if there are markers, put the body into the output
|
|
// if there are markers, put the body into the output
|
|
|
$body = $this->getBody();
|
|
$body = $this->getBody();
|
|
|
- if (preg_match('#/\* Zend_CodeGenerator_Php_File-(.*?)Marker:#', $body)) {
|
|
|
|
|
|
|
+ if (preg_match('#/\* Zend_CodeGenerator_Php_File-(.*?)Marker#', $body)) {
|
|
|
$output .= $body;
|
|
$output .= $body;
|
|
|
$body = '';
|
|
$body = '';
|
|
|
}
|
|
}
|
|
@@ -428,6 +428,9 @@ class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
|
|
|
$classes = $this->getClasses();
|
|
$classes = $this->getClasses();
|
|
|
if (!empty($classes)) {
|
|
if (!empty($classes)) {
|
|
|
foreach ($classes as $class) {
|
|
foreach ($classes as $class) {
|
|
|
|
|
+ if($this->getDocblock() == $class->getDocblock()) {
|
|
|
|
|
+ $class->setDocblock(null);
|
|
|
|
|
+ }
|
|
|
$regex = str_replace('?', $class->getName(), self::$_markerClass);
|
|
$regex = str_replace('?', $class->getName(), self::$_markerClass);
|
|
|
$regex = preg_quote($regex, '#');
|
|
$regex = preg_quote($regex, '#');
|
|
|
if (preg_match('#'.$regex.'#', $output)) {
|
|
if (preg_match('#'.$regex.'#', $output)) {
|