Skip to content

Commit

Permalink
fix: Not able to surrender a psv licence (dvsa/olcs-selfserve#111)
Browse files Browse the repository at this point in the history
* fix: Not able to surrender a psv licence

* chore: Remove redundant comment
  • Loading branch information
wadedvsa authored Apr 2, 2024
1 parent 0098160 commit 0f4fbc3
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Laminas\Http\Response;
use Laminas\I18n\Translator\Translator;
use Laminas\Mvc\MvcEvent;
use Laminas\View\Model\ViewModel;
use Olcs\Controller\AbstractSelfserveController;
use Olcs\Controller\Config\DataSource\DataSourceConfig;
use Permits\Controller\Config\FeatureToggle\FeatureToggleConfig;
Expand Down Expand Up @@ -68,7 +69,7 @@ public function onDispatch(MvcEvent $e)
/**
* IndexAction
*
* @return array|\Laminas\View\Model\ViewModel
* @return array|ViewModel
*/
public function indexAction()
{
Expand Down Expand Up @@ -126,23 +127,15 @@ private function getGvData(): array
*
* @psalm-return array{pageTitle: 'licence.surrender.start.title.psv', cancelBus: list{mixed}}
*/
private function getPsvData(Translator $translateService): array
private function getPsvData(TranslationHelperService $translateService): array
{
return [
'pageTitle' => 'licence.surrender.start.title.psv',
'cancelBus' => [$translateService->translate('licence.surrender.start.cancel.bus')]
];
}

/**
* getView
*
* @param array $licence
* @param Translator $translateService
*
* @return \Laminas\View\Model\ViewModel
*/
private function getView($licence, $translateService): \Laminas\View\Model\ViewModel
private function getView(array $licence, TranslationHelperService $translateService): ViewModel
{
$view = $this->genericView();

Expand Down

0 comments on commit 0f4fbc3

Please sign in to comment.