Code Duplication    Length = 4-4 lines in 2 locations

src/Adapter/File.php 2 locations

@@ 110-113 (lines=4) @@
107
		}
108
109
		// If locking is enabled get a shared lock for reading on the resource.
110
		if ($this->options['file.locking'] && !flock($resource, LOCK_SH))
111
		{
112
			throw new RuntimeException(sprintf('Unable to fetch cache entry for %s.  Connot obtain a lock.', $key));
113
		}
114
115
		$data = stream_get_contents($resource);
116
@@ 118-121 (lines=4) @@
115
		$data = stream_get_contents($resource);
116
117
		// If locking is enabled release the lock on the resource.
118
		if ($this->options['file.locking'] && !flock($resource, LOCK_UN))
119
		{
120
			throw new RuntimeException(sprintf('Unable to fetch cache entry for %s.  Connot release the lock.', $key));
121
		}
122
123
		fclose($resource);
124