/** * @param string $style * @param $degree * @return string */ public function getDegreeLabel($style = 'bujitsudo', $degree) { if ($style === 'bujitsudo') { return $this->profileService->getBuJitsuDoOptions()[$degree]; } return $this->profileService->getJiuJitsuOptions()[$degree]; }
/** * @param FluidView $view` */ protected function initializeView(FluidView $view) { $captcha = new Captcha(); $captcha->setPublicKey($this->captchaSettings['publicKey']); $view->assignMultiple(['captcha' => $captcha->displayHTML('clean'), 'jiuJitsuOptions' => $this->profileService->getJiuJitsuOptions(), 'buJitsuDoOptions' => $this->profileService->getBuJitsuDoOptions()]); }