/** * Get vertical ratio * @return string */ public function verticalRatio() { if ($this->Activity->verticalRatio() > 0) { return VerticalRatio::format($this->Activity->verticalRatio()); } return ''; }
/** * Constructor * @param \Runalyze\View\Activity\Context $Context */ public function __construct(\Runalyze\View\Activity\Context $Context) { parent::__construct(\Helper::Unknown(\Runalyze\Activity\VerticalRatio::format($Context->activity()->verticalRatio(), false), '-'), '%', __('Vertical Ratio')); }