Code Duplication    Length = 9-11 lines in 2 locations

lib/private/Files/Storage/Home.php 1 location

@@ 87-95 (lines=9) @@
84
	 * @param \OC\Files\Storage\Storage (optional) the storage to pass to the watcher
85
	 * @return \OC\Files\Cache\Propagator
86
	 */
87
	public function getPropagator($storage = null) {
88
		if (!$storage) {
89
			$storage = $this;
90
		}
91
		if (!isset($this->propagator)) {
92
			$this->propagator = new HomePropagator($storage, \OC::$server->getDatabaseConnection());
93
		}
94
		return $this->propagator;
95
	}
96
97
98
	/**

apps/files_sharing/lib/sharedstorage.php 1 location

@@ 328-338 (lines=11) @@
325
		return new \OCA\Files_Sharing\Scanner($storage);
326
	}
327
328
	public function getPropagator($storage = null) {
329
		if (isset($this->propagator)) {
330
			return $this->propagator;
331
		}
332
333
		if (!$storage) {
334
			$storage = $this;
335
		}
336
		$this->propagator = new \OCA\Files_Sharing\SharedPropagator($storage, \OC::$server->getDatabaseConnection());
337
		return $this->propagator;
338
	}
339
340
	public function getOwner($path) {
341
		return $this->superShare->getShareOwner();