1
0
mirror of synced 2025-01-17 22:11:41 +03:00

DDC-855 - Fix EntityGenerator annoyance when run successive times.

This commit is contained in:
Benjamin Eberlei 2010-11-27 19:57:37 +01:00
parent e4f74d8290
commit 51922a1ff0

View File

@ -218,7 +218,7 @@ public function <methodName>()
$body = str_replace('<spaces>', $this->_spaces, $body);
$last = strrpos($currentCode, '}');
return substr($currentCode, 0, $last) . $body . "\n}";
return substr($currentCode, 0, $last) . $body . (strlen($body) > 0 ? "\n" : ''). "}";
}
/**