Merge pull request #803 from cleentfaar/patch-1
Appended newline to (newly) generated files for PSR2 compatibility
This commit is contained in:
commit
1414cc315e
1 changed files with 2 additions and 2 deletions
|
@ -392,7 +392,7 @@ public function __construct()
|
||||||
$this->generateEntityBody($metadata)
|
$this->generateEntityBody($metadata)
|
||||||
);
|
);
|
||||||
|
|
||||||
$code = str_replace($placeHolders, $replacements, static::$classTemplate);
|
$code = str_replace($placeHolders, $replacements, static::$classTemplate) . "\n";
|
||||||
|
|
||||||
return str_replace('<spaces>', $this->spaces, $code);
|
return str_replace('<spaces>', $this->spaces, $code);
|
||||||
}
|
}
|
||||||
|
@ -413,7 +413,7 @@ public function __construct()
|
||||||
$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 . (strlen($body) > 0 ? "\n" : ''). "}\n";
|
return substr($currentCode, 0, $last) . $body . (strlen($body) > 0 ? "\n" : '') . "}\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue