@@ -261,6 +261,9 @@ discard block |
||
| 261 | 261 | return $this->leave(__FUNCTION__, $result); |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | + /** |
|
| 265 | + * @param string $path |
|
| 266 | + */ |
|
| 264 | 267 | private function removeFromCache($path) { |
| 265 | 268 | $path = trim($path, '/'); |
| 266 | 269 | // TODO The CappedCache does not really clear by prefix. It just clears all. |
@@ -633,7 +636,7 @@ discard block |
||
| 633 | 636 | * if wnd.logging.enable is set to true in the config will log a leave line |
| 634 | 637 | * with the given function, the return value or the exception |
| 635 | 638 | * |
| 636 | - * @param $function |
|
| 639 | + * @param string $function |
|
| 637 | 640 | * @param mixed $result an exception will be logged and then returned |
| 638 | 641 | * @return mixed |
| 639 | 642 | */ |
@@ -660,6 +663,9 @@ discard block |
||
| 660 | 663 | return $result; |
| 661 | 664 | } |
| 662 | 665 | |
| 666 | + /** |
|
| 667 | + * @param string $function |
|
| 668 | + */ |
|
| 663 | 669 | private function swallow($function, \Exception $exception) { |
| 664 | 670 | if (\OC::$server->getConfig()->getSystemValue('wnd.logging.enable', false) === true) { |
| 665 | 671 | Util::writeLog('wnd', "$function swallowing ".get_class($exception) |