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

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