Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ebf2927

Browse filesBrowse 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
Copy full SHA for ebf2927

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎cookbook/doctrine/file_uploads.rst

Copy file name to clipboardExpand all lines: cookbook/doctrine/file_uploads.rst
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.