File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ rules::
133
133
private $file;
134
134
135
135
/**
136
- * Set file
136
+ * Sets file
137
137
*
138
138
* @param UploadedFile $file
139
139
*/
@@ -417,7 +417,7 @@ property, instead of the actual filename::
417
417
$this->file = $file;
418
418
// check if we have an old image path
419
419
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
421
421
$this->temp = $this->getAbsolutePath();
422
422
}
423
423
}
@@ -453,7 +453,7 @@ property, instead of the actual filename::
453
453
454
454
unset($this->file);
455
455
456
- //check if we have an old image
456
+ // check if we have an old image
457
457
if (isset($this->temp)) {
458
458
// delete the old image
459
459
unlink($this->temp);
@@ -475,7 +475,7 @@ property, instead of the actual filename::
475
475
*/
476
476
public function removeUpload()
477
477
{
478
- if ($this->temp) {
478
+ if (isset( $this->temp) ) {
479
479
unlink($this->temp);
480
480
}
481
481
}
You can’t perform that action at this time.
0 commit comments