Code Duplication    Length = 4-4 lines in 2 locations

src/Adapter/File.php 2 locations

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