Add an empty line at end of file according to PSR-2 on PhpStorm : <p>I use <a href="http://www.php-fig.org/psr/psr-2/" rel="noreferrer">PSR-2</a> for code styling my code.</p>

<p>When I inspect a file using Codesniffer most of the times I get the following error.</p>

<pre><code>332 | ERROR   | [x] Expected 1 newline at end of file; 0 found
</code></pre>

<p>It's obvious how to fix this. What I need to know is if PhpStorm has a way to add the <code>1 newline at end of file</code></p>

<p>I already loaded the predefined style from <code>Settings -&gt; Editor -&gt; Code Style -&gt; PHP -&gt; Set From -&gt; PSR-1/PSR-2</code> and also used the <code>Reformat Code</code> to change the CS accordingly.</p>

<p>Everything is fixed except from the new line. Am I missing something?</p>
