Code Duplication    Length = 4-4 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

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