| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 34 | public function saveAs($fileName, $deleteTempFile = true)  | 
            ||
| 35 | 	{ | 
            ||
| 36 | 		if (($this->_errorCode === UPLOAD_ERR_OK) && (file_exists($this->_localName))) { | 
            ||
| 37 | 			if ($deleteTempFile) { | 
            ||
| 38 | return rename($this->_localName, $fileName);  | 
            ||
| 39 | 			} else { | 
            ||
| 40 | return copy($this->_localName, $fileName);  | 
            ||
| 41 | }  | 
            ||
| 42 | 		} else { | 
            ||
| 43 | return false;  | 
            ||
| 44 | }  | 
            ||
| 47 |