public function pageHistoryDiff(string $cabin, string $leftUnique, string $rightUnique) { try { $left = $this->pg->getPageVersionByUniqueId($leftUnique); $right = $this->pg->getPageVersionByUniqueId($rightUnique); if ($left['page'] !== $right['page']) { throw new CustomPageNotFoundException(\__('Unique IDs for different pages.')); } } catch (CustomPageNotFoundException $ex) { $this->log('Page not found', LogLevel::NOTICE, ['exception' => \Airship\throwableToArray($ex)]); \Airship\redirect($this->airship_cabin_prefix . '/pages/' . \trim($cabin, '/')); return; } $this->setTemplateExtraData($cabin); $this->lens('pages/page_history_diff', ['left' => $left, 'right' => $right]); }