Skip to content

Commit b98f5e8

Browse files
acidjameswouterj
authored andcommitted
Inline condition removed for easier reading
1 parent aa70028 commit b98f5e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbook/doctrine/file_uploads.rst

+2-1
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)