DDC-855 - Fix EntityGenerator annoyance when run successive times.
This commit is contained in:
parent
e4f74d8290
commit
51922a1ff0
@ -218,7 +218,7 @@ public function <methodName>()
|
|||||||
$body = str_replace('<spaces>', $this->_spaces, $body);
|
$body = str_replace('<spaces>', $this->_spaces, $body);
|
||||||
$last = strrpos($currentCode, '}');
|
$last = strrpos($currentCode, '}');
|
||||||
|
|
||||||
return substr($currentCode, 0, $last) . $body . "\n}";
|
return substr($currentCode, 0, $last) . $body . (strlen($body) > 0 ? "\n" : ''). "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user