Skip to content

Commit

Permalink
Update EntityGenerator.php
Browse files Browse the repository at this point in the history
orm:generate:entities genrates 2 blank lines
PSR2: All PHP files MUST end with a single blank line.

this worked for me
  • Loading branch information
eyepin authored Dec 7, 2016
1 parent 6af1d28 commit 521588f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Tools/EntityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public function generateEntityClass(ClassMetadataInfo $metadata)
$this->generateEntityBody($metadata)
);

$code = str_replace($placeHolders, $replacements, static::$classTemplate) . "\n";
$code = str_replace($placeHolders, $replacements, static::$classTemplate);

return str_replace('<spaces>', $this->spaces, $code);
}
Expand Down

0 comments on commit 521588f

Please sign in to comment.