Code Duplication    Length = 8-8 lines in 2 locations

lib/private/Cache/File.php 2 locations

@@ 72-79 (lines=8) @@
69
	 * @return mixed|null
70
	 * @throws \OC\ForbiddenException
71
	 */
72
	public function get($key) {
73
		$result = null;
74
		if ($this->hasKey($key)) {
75
			$storage = $this->getStorage();
76
			$result = $storage->file_get_contents($key);
77
		}
78
		return $result;
79
	}
80
81
	/**
82
	 * Returns the size of the stored/cached data
@@ 87-94 (lines=8) @@
84
	 * @param string $key
85
	 * @return int
86
	 */
87
	public function size($key) {
88
		$result = 0;
89
		if ($this->hasKey($key)) {
90
			$storage = $this->getStorage();
91
			$result = $storage->filesize($key);
92
		}
93
		return $result;
94
	}
95
96
	/**
97
	 * @param string $key