Code Duplication    Length = 8-8 lines in 2 locations

lib/private/Files/Cache/Wrapper/CacheWrapper.php 1 location

@@ 110-117 (lines=8) @@
107
	 * @return int file id
108
	 * @throws \RuntimeException
109
	 */
110
	public function put($file, array $data) {
111
		if (($id = $this->getId($file)) > -1) {
112
			$this->update($id, $data);
113
			return $id;
114
		} else {
115
			return $this->insert($file, $data);
116
		}
117
	}
118
119
	/**
120
	 * insert meta data for a new file or folder

lib/private/Files/Cache/Cache.php 1 location

@@ 225-232 (lines=8) @@
222
	 * @return int file id
223
	 * @throws \RuntimeException
224
	 */
225
	public function put($file, array $data) {
226
		if (($id = $this->getId($file)) > -1) {
227
			$this->update($id, $data);
228
			return $id;
229
		} else {
230
			return $this->insert($file, $data);
231
		}
232
	}
233
234
	/**
235
	 * insert meta data for a new file or folder