--- a/web/lib/Zend/CodeGenerator/Php/Method.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Method.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Method.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Method.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Method extends Zend_CodeGenerator_Php_Member_Abstract
@@ -220,10 +220,12 @@
$output .= ')' . self::LINE_FEED . $indent . '{' . self::LINE_FEED;
- if ($this->_body) {
+ if ($this->_body && $this->isSourceDirty()) {
$output .= ' '
. str_replace(self::LINE_FEED, self::LINE_FEED . $indent . $indent, trim($this->_body))
. self::LINE_FEED;
+ } elseif ($this->_body) {
+ $output .= $this->_body . self::LINE_FEED;
}
$output .= $indent . '}' . self::LINE_FEED;