Code Duplication    Length = 4-4 lines in 2 locations

src/File.php 2 locations

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