Code Duplication    Length = 11-11 lines in 3 locations

filesystem/storage/DBFile.php 3 locations

@@ 188-198 (lines=11) @@
185
		return $this->getBasename();
186
	}
187
188
	public function setFromLocalFile($path, $filename = null, $hash = null, $variant = null, $conflictResolution = null) {
189
		$this->assertFilenameValid($filename ?: $path);
190
		$result = $this
191
			->getStore()
192
			->setFromLocalFile($path, $filename, $hash, $variant, $conflictResolution);
193
		// Update from result
194
		if($result) {
195
			$this->setValue($result);
196
		}
197
		return $result;
198
	}
199
200
	public function setFromStream($stream, $filename, $hash = null, $variant = null, $conflictResolution = null) {
201
		$this->assertFilenameValid($filename);
@@ 200-210 (lines=11) @@
197
		return $result;
198
	}
199
200
	public function setFromStream($stream, $filename, $hash = null, $variant = null, $conflictResolution = null) {
201
		$this->assertFilenameValid($filename);
202
		$result = $this
203
			->getStore()
204
			->setFromStream($stream, $filename, $hash, $variant, $conflictResolution);
205
		// Update from result
206
		if($result) {
207
			$this->setValue($result);
208
		}
209
		return $result;
210
	}
211
212
	public function setFromString($data, $filename, $hash = null, $variant = null, $conflictResolution = null) {
213
		$this->assertFilenameValid($filename);
@@ 212-222 (lines=11) @@
209
		return $result;
210
	}
211
212
	public function setFromString($data, $filename, $hash = null, $variant = null, $conflictResolution = null) {
213
		$this->assertFilenameValid($filename);
214
		$result = $this
215
			->getStore()
216
			->setFromString($data, $filename, $hash, $variant, $conflictResolution);
217
		// Update from result
218
		if($result) {
219
			$this->setValue($result);
220
		}
221
		return $result;
222
	}
223
224
	public function getStream() {
225
		if(!$this->exists()) {