@@ -174,7 +174,7 @@ discard block  | 
                                                    ||
| 174 | 174 | * @param string $path  | 
                                                        
| 175 | 175 | * @throws \OCP\Files\NotFoundException  | 
                                                        
| 176 | 176 | * @throws \OCP\Files\NotPermittedException  | 
                                                        
| 177 | - * @return string  | 
                                                        |
| 177 | + * @return \OCP\Files\Node  | 
                                                        |
| 178 | 178 | */  | 
                                                        
| 179 | 179 |  	public function get($path) { | 
                                                        
| 180 | 180 | $path = $this->normalizePath($path);  | 
                                                        
@@ -371,6 +371,9 @@ discard block  | 
                                                    ||
| 371 | 371 | |
| 372 | 372 | }  | 
                                                        
| 373 | 373 | |
| 374 | + /**  | 
                                                        |
| 375 | + * @param string $fullPath  | 
                                                        |
| 376 | + */  | 
                                                        |
| 374 | 377 |  	private function resolveVirtualNode($fullPath) { | 
                                                        
| 375 | 378 |  		$pieces = explode('/', $fullPath); | 
                                                        
| 376 | 379 |  		if ($pieces[1] !== 'meta') { | 
                                                        
@@ -721,7 +721,7 @@  | 
                                                    ||
| 721 | 721 | }  | 
                                                        
| 722 | 722 | |
| 723 | 723 | /**  | 
                                                        
| 724 | - * @param $internalPath  | 
                                                        |
| 724 | + * @param string $internalPath  | 
                                                        |
| 725 | 725 | * @return array|string  | 
                                                        
| 726 | 726 | */  | 
                                                        
| 727 | 727 |  	private function convertInternalPathToGlobalPath($internalPath) { | 
                                                        
@@ -26,7 +26,6 @@  | 
                                                    ||
| 26 | 26 | use OC\Files\Meta\MetaVersionCollection;  | 
                                                        
| 27 | 27 | use OC\Files\View;  | 
                                                        
| 28 | 28 | use OCA\DAV\Connector\Sabre\Directory;  | 
                                                        
| 29 | -use OCP\IMetaData;  | 
                                                        |
| 30 | 29 | use Sabre\DAV\Exception\Forbidden;  | 
                                                        
| 31 | 30 | use Sabre\DAV\Exception\MethodNotAllowed;  | 
                                                        
| 32 | 31 | use Sabre\DAV\Exception\NotFound;  | 
                                                        
@@ -54,6 +54,9 @@  | 
                                                    ||
| 54 | 54 | return $this->impl($metaDataNode);  | 
                                                        
| 55 | 55 | }  | 
                                                        
| 56 | 56 | |
| 57 | + /**  | 
                                                        |
| 58 | + * @param MetaDataNode $metaDataNode  | 
                                                        |
| 59 | + */  | 
                                                        |
| 57 | 60 |  	function impl($metaDataNode) { | 
                                                        
| 58 | 61 | $view = new View();  | 
                                                        
| 59 | 62 | $path = $view->getPath($metaDataNode->getMetaVersionFolder()->getID());  |