From 521588f498b7021afb40efc45108b0855651f53f Mon Sep 17 00:00:00 2001 From: eyepin Date: Wed, 7 Dec 2016 13:13:21 +0100 Subject: [PATCH] Update EntityGenerator.php orm:generate:entities genrates 2 blank lines PSR2: All PHP files MUST end with a single blank line. this worked for me --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 22d5b412a..71ef0bbb5 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -421,7 +421,7 @@ public function __construct() $this->generateEntityBody($metadata) ); - $code = str_replace($placeHolders, $replacements, static::$classTemplate) . "\n"; + $code = str_replace($placeHolders, $replacements, static::$classTemplate); return str_replace('', $this->spaces, $code); }