private function ensureArtifactDataIsCorrect(Reference $ref, $val) { $group_id = $this->getGroupIdFromArtifactId($val); $ref->setGroupId($this->getGroupIdFromArtifactId($group_id)); $ref->setLink("/tracker/?func=detail&aid={$val}&group_id={$group_id}"); }