Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitebf2927

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 readingPrevious inline condition would cause confusion or trigger notifications in IDE (Netbeans,...)Commits-------b98f5e8 Inline condition removed for easier reading
2 parentsaa70028 +b98f5e8 commitebf2927

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)

[8]ページ先頭

©2009-2025 Movatter.jp