Code Duplication    Length = 4-4 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2310-2313 (lines=4) @@
2307
					$pcache=$this->store->get_filestore("privatecache");
2308
					$pcache->write($image, $this->id, $file);
2309
					$time=time()+($time*3600);
2310
					if (!$pcache->touch($this->id, $file, $time)) {
2311
						$this->error = ar::error("savecache: ERROR: couldn't touch $file", 1113);
2312
						$result = false;
2313
					}
2314
				}
2315
				ob_end_clean();
2316
				echo $image;
@@ 2362-2365 (lines=4) @@
2359
		if( $time > 0  && $DB["wasUsed"] == 0) {
2360
			$pcache->write(serialize($data), $this->id, $name);
2361
			$time=time()+($time*3600);
2362
			if (!$pcache->touch($this->id, $name, $time)) {
2363
				$this->error = ar::error('Could not touch '.$name, 1113);
2364
				return false;
2365
			}
2366
		}
2367
		return true;
2368
	}