Code Duplication    Length = 7-9 lines in 2 locations

lib/Db/ChangeHelper.php 2 locations

@@ 51-57 (lines=7) @@
48
		$this->request = $request;
49
	}
50
51
	public function boardChanged($boardId) {
52
		$time = time();
53
		$etag = md5($time . microtime());
54
		$this->cache->set(self::TYPE_BOARD . '-' . $boardId, $etag);
55
		$sql  = 'UPDATE `*PREFIX*deck_boards` SET `last_modified` = ? WHERE `id` = ?';
56
		$this->db->executeUpdate($sql, [$time, $boardId]);
57
	}
58
59
	public function cardChanged($cardId, $updateCard = true) {
60
		$time = time();
@@ 76-84 (lines=9) @@
73
		}
74
	}
75
76
	public function stackChanged($stackId, $updateBoard = true) {
77
		$time = time();
78
		$etag = md5($time . microtime());
79
		$this->cache->set(self::TYPE_CARD . '-' .$stackId, $etag);
80
		if ($updateBoard) {
81
			$sql = 'UPDATE `*PREFIX*deck_stacks` SET `last_modified` = ? WHERE `id` = ?';
82
			$this->db->executeUpdate($sql, [time(), $stackId]);
83
		}
84
	}
85
86
	public function checkEtag($type, $id) {
87
		$etag = $this->getEtag($type, $id);