From 89d4a21518dbd0b61f89e80c0c0fbcacbad13800 Mon Sep 17 00:00:00 2001 From: martin05 Date: Fri, 2 Jun 2017 12:22:30 +0200 Subject: [PATCH] Use of Setters and Getters If I have already define getter for the $targetDir, I should use it. --- controller/upload_file.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/upload_file.rst b/controller/upload_file.rst index 28285ccad99..01a4f103fd0 100644 --- a/controller/upload_file.rst +++ b/controller/upload_file.rst @@ -239,7 +239,7 @@ logic to a separate service:: { $fileName = md5(uniqid()).'.'.$file->guessExtension(); - $file->move($this->targetDir, $fileName); + $file->move($this->getTargetDir(), $fileName); return $fileName; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy