Skip to content

Commit f1bbee6

Browse files
committed
cs fixes
1 parent 8d95a4c commit f1bbee6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/doctrine/file_uploads.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ rules::
133133
private $file;
134134

135135
/**
136-
* Set file
136+
* Sets file
137137
*
138138
* @param UploadedFile $file
139139
*/
@@ -417,7 +417,7 @@ property, instead of the actual filename::
417417
$this->file = $file;
418418
// check if we have an old image path
419419
if (is_file($this->getAbsolutePath())) {
420-
//store the old name to delete after the update
420+
// store the old name to delete after the update
421421
$this->temp = $this->getAbsolutePath();
422422
}
423423
}
@@ -453,7 +453,7 @@ property, instead of the actual filename::
453453

454454
unset($this->file);
455455

456-
//check if we have an old image
456+
// check if we have an old image
457457
if (isset($this->temp)) {
458458
// delete the old image
459459
unlink($this->temp);
@@ -475,7 +475,7 @@ property, instead of the actual filename::
475475
*/
476476
public function removeUpload()
477477
{
478-
if ($this->temp) {
478+
if (isset($this->temp)) {
479479
unlink($this->temp);
480480
}
481481
}

0 commit comments

Comments
 (0)