@@ -284,6 +284,9 @@ discard block |
||
284 | 284 | return $this->leave(__FUNCTION__, $result); |
285 | 285 | } |
286 | 286 | |
287 | + /** |
|
288 | + * @param string $path |
|
289 | + */ |
|
287 | 290 | private function removeFromCache($path) { |
288 | 291 | $path = trim($path, '/'); |
289 | 292 | // TODO The CappedCache does not really clear by prefix. It just clears all. |
@@ -673,7 +676,7 @@ discard block |
||
673 | 676 | * if smb.logging.enable is set to true in the config will log a leave line |
674 | 677 | * with the given function, the return value or the exception |
675 | 678 | * |
676 | - * @param $function |
|
679 | + * @param string $function |
|
677 | 680 | * @param mixed $result an exception will be logged and then returned |
678 | 681 | * @return mixed |
679 | 682 | */ |
@@ -700,6 +703,9 @@ discard block |
||
700 | 703 | return $result; |
701 | 704 | } |
702 | 705 | |
706 | + /** |
|
707 | + * @param string $function |
|
708 | + */ |
|
703 | 709 | private function swallow($function, \Exception $exception) { |
704 | 710 | if (\OC::$server->getConfig()->getSystemValue('smb.logging.enable', false) === true) { |
705 | 711 | Util::writeLog('smb', "$function swallowing ".get_class($exception) |