Code Duplication    Length = 12-13 lines in 2 locations

src/BigFileCache.php 1 location

@@ 133-144 (lines=12) @@
130
					}						
131
				}
132
				return $value;
133
			} else {
134
				fclose($fp);
135
				unlink($filename);
136
				if ($this->log) {
137
					if ($this->log instanceof LoggerInterface) {
138
						$this->log->info("Retrieving key '{key}' from file cache: key outdated, cache miss.", array('key'=>$key));
139
					} else {
140
						$this->log->trace("Retrieving key '$key' from file cache: key outdated, cache miss.");
141
					}
142
				}
143
				return null;
144
			}
145
		} else {
146
			if ($this->log) {
147
				if ($this->log instanceof LoggerInterface) {

src/FileCache.php 1 location

@@ 93-105 (lines=13) @@
90
					}						
91
				}
92
				return $value;
93
			} else {
94
				flock($fp, LOCK_UN);
95
				fclose($fp);
96
				unlink($filename);
97
				if ($this->log) {
98
					if ($this->log instanceof LoggerInterface) {
99
						$this->log->info("Retrieving key '{key}' from file cache: key outdated, cache miss.", array('key'=>$key));
100
					} else {
101
						$this->log->trace("Retrieving key '$key' from file cache: key outdated, cache miss.");
102
					}
103
				}
104
				return null;
105
			}
106
		} else {
107
			if ($this->log) {
108
				if ($this->log instanceof LoggerInterface) {