Code Duplication    Length = 4-4 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2305-2308 (lines=4) @@
2302
					$pcache=$this->store->get_filestore("privatecache");
2303
					$pcache->write($image, $this->id, $file);
2304
					$time=time()+($time*3600);
2305
					if (!$pcache->touch($this->id, $file, $time)) {
2306
						$this->error = ar::error("savecache: ERROR: couldn't touch $file", 1113);
2307
						$result = false;
2308
					}
2309
				}
2310
				ob_end_clean();
2311
				echo $image;
@@ 2357-2360 (lines=4) @@
2354
		if( $time > 0  && $DB["wasUsed"] == 0) {
2355
			$pcache->write(serialize($data), $this->id, $name);
2356
			$time=time()+($time*3600);
2357
			if (!$pcache->touch($this->id, $name, $time)) {
2358
				$this->error = ar::error('Could not touch '.$name, 1113);
2359
				return false;
2360
			}
2361
		}
2362
		return true;
2363
	}