@@ -347,19 +347,14 @@ public function getWatcher($path = '', $storage = null) {
347347 return $ this ->watcher ;
348348 }
349349
350- /**
351- * get a propagator instance for the cache
352- *
353- * @param \OC\Files\Storage\Storage $storage (optional) the storage to pass to the watcher
354- * @return Propagator
355- */
356350 public function getPropagator ($ storage = null ) {
357351 if (!$ storage ) {
358352 $ storage = $ this ;
359353 }
360354 if (!$ storage ->instanceOfStorage (self ::class)) {
361355 throw new \InvalidArgumentException ('Storage is not of the correct class ' );
362356 }
357+ /** @var self $storage */
363358 if (!isset ($ storage ->propagator )) {
364359 $ config = \OC ::$ server ->getSystemConfig ();
365360 $ storage ->propagator = new Propagator ($ storage , \OC ::$ server ->getDatabaseConnection (), ['appdata_ ' . $ config ->getValue ('instanceid ' )]);
@@ -649,9 +644,6 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
649644 return $ result ;
650645 }
651646
652- /**
653- * @inheritdoc
654- */
655647 public function getMetaData ($ path ) {
656648 if (Filesystem::isFileBlacklisted ($ path )) {
657649 throw new ForbiddenException ('Invalid path: ' . $ path , false );
@@ -682,12 +674,6 @@ public function getMetaData($path) {
682674 return $ data ;
683675 }
684676
685- /**
686- * @param string $path
687- * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
688- * @param \OCP\Lock\ILockingProvider $provider
689- * @throws \OCP\Lock\LockedException
690- */
691677 public function acquireLock ($ path , $ type , ILockingProvider $ provider ) {
692678 $ logger = $ this ->getLockLogger ();
693679 if ($ logger ) {
@@ -715,12 +701,6 @@ public function acquireLock($path, $type, ILockingProvider $provider) {
715701 }
716702 }
717703
718- /**
719- * @param string $path
720- * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
721- * @param \OCP\Lock\ILockingProvider $provider
722- * @throws \OCP\Lock\LockedException
723- */
724704 public function releaseLock ($ path , $ type , ILockingProvider $ provider ) {
725705 $ logger = $ this ->getLockLogger ();
726706 if ($ logger ) {
@@ -748,12 +728,6 @@ public function releaseLock($path, $type, ILockingProvider $provider) {
748728 }
749729 }
750730
751- /**
752- * @param string $path
753- * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
754- * @param \OCP\Lock\ILockingProvider $provider
755- * @throws \OCP\Lock\LockedException
756- */
757731 public function changeLock ($ path , $ type , ILockingProvider $ provider ) {
758732 $ logger = $ this ->getLockLogger ();
759733 if ($ logger ) {
0 commit comments