| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 32 | public function save(Http\FileUpload $fileUpload, $relativePath) | ||
| 33 | 	{ | ||
| 34 | $path = Upload\Utils::makeRelativePath($relativePath); | ||
| 35 | $dir = dirname($relativePath); | ||
| 36 | 		if ($dir !== '.') { | ||
| 37 | $this->ftp->mkDirRecursive($dir); | ||
| 38 | } | ||
| 39 | $this->ftp->put($path, $fileUpload->getTemporaryFile(), FTP_BINARY); | ||
| 40 | @unlink($fileUpload->getTemporaryFile()); | ||
|  | |||
| 41 | } | ||
| 42 | |||
| 50 | } | 
If you suppress an error, we recommend checking for the error condition explicitly: