Permalink
Browse files

minor #4387 Inline condition removed for easier reading (acidjames)

This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4387).

Discussion
----------

Inline condition removed for easier reading

Previous inline condition would cause confusion or trigger notifications in IDE (Netbeans,...)

Commits
-------

b98f5e8 Inline condition removed for easier reading
  • Loading branch information...
wouterj committed Oct 31, 2014
2 parents aa70028 + b98f5e8 commit ebf29274fba3d3b39a867c0ff58dd5457ce36c5e
Showing with 2 additions and 1 deletion.
  1. +2 −1 cookbook/doctrine/file_uploads.rst
@@ -404,7 +404,8 @@ Next, refactor the ``Document`` class to take advantage of these callbacks::
*/
public function removeUpload()
{
if ($file = $this->getAbsolutePath()) {
$file = $this->getAbsolutePath();
if ($file) {
unlink($file);
}
}

0 comments on commit ebf2927

Please sign in to comment.