Skip to content

Commit ebf2927

Browse files
committed
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
2 parents aa70028 + b98f5e8 commit ebf2927

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbook/doctrine/file_uploads.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ Next, refactor the ``Document`` class to take advantage of these callbacks::
404404
*/
405405
public function removeUpload()
406406
{
407-
if ($file = $this->getAbsolutePath()) {
407+
$file = $this->getAbsolutePath();
408+
if ($file) {
408409
unlink($file);
409410
}
410411
}

0 commit comments

Comments
 (0)