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 789ed43

Browse filesBrowse files
martin05weaverryan
authored andcommitted
Use of Setters and Getters
If I have already define getter for the $targetDir, I should use it.
1 parent cd8b892 commit 789ed43
Copy full SHA for 789ed43

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎controller/upload_file.rst

Copy file name to clipboardExpand all lines: controller/upload_file.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ logic to a separate service::
243243
{
244244
$fileName = md5(uniqid()).'.'.$file->guessExtension();
245245

246-
$file->move($this->targetDir, $fileName);
246+
$file->move($this->getTargetDir(), $fileName);
247247

248248
return $fileName;
249249
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.