Code Duplication    Length = 9-9 lines in 2 locations

lib/private/Files/ObjectStore/ObjectStoreStorage.php 1 location

@@ 135-143 (lines=9) @@
132
	 * @param \OC\Files\Storage\Storage (optional) the storage to pass to the scanner
133
	 * @return \OC\Files\ObjectStore\NoopScanner
134
	 */
135
	public function getScanner($path = '', $storage = null) {
136
		if (!$storage) {
137
			$storage = $this;
138
		}
139
		if (!isset($this->scanner)) {
140
			$this->scanner = new NoopScanner($storage);
141
		}
142
		return $this->scanner;
143
	}
144
145
	public function getId() {
146
		return $this->id;

apps/files_sharing/lib/External/Storage.php 1 location

@@ 145-153 (lines=9) @@
142
	 * @param \OC\Files\Storage\Storage $storage
143
	 * @return \OCA\Files_Sharing\External\Scanner
144
	 */
145
	public function getScanner($path = '', $storage = null) {
146
		if (!$storage) {
147
			$storage = $this;
148
		}
149
		if (!isset($this->scanner)) {
150
			$this->scanner = new Scanner($storage);
151
		}
152
		return $this->scanner;
153
	}
154
155
	/**
156
	 * check if a file or folder has been updated since $time