Skip to content

Commit

Permalink
Applied code review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs committed Nov 15, 2023
1 parent b0819a7 commit 4ff99fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
10 changes: 0 additions & 10 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6390,11 +6390,6 @@ parameters:
count: 1
path: src/lib/Form/Type/Content/CustomUrl/CustomUrlRemoveType.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:setTargetLocation\\(\\)\\.$#"
count: 1
path: src/lib/Form/Type/Content/Draft/ContentCreateType.php

-
message: "#^Method Ibexa\\\\AdminUi\\\\Form\\\\Type\\\\Content\\\\Draft\\\\ContentCreateType\\:\\:buildForm\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -6415,11 +6410,6 @@ parameters:
count: 1
path: src/lib/Form/Type/Content/Draft/ContentCreateType.php

-
message: "#^PHPDoc tag @param references unknown parameter\\: \\$contentTypeChoiceLoader$#"
count: 1
path: src/lib/Form/Type/Content/Draft/ContentCreateType.php

-
message: "#^Parameter \\#1 \\$languageChoiceLoader of class Ibexa\\\\AdminUi\\\\Form\\\\Type\\\\ChoiceList\\\\Loader\\\\ContentCreateLanguageChoiceLoader constructor expects Ibexa\\\\AdminUi\\\\Form\\\\Type\\\\ChoiceList\\\\Loader\\\\LanguageChoiceLoader, Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface given\\.$#"
count: 1
Expand Down
4 changes: 1 addition & 3 deletions src/lib/Form/Type/Content/Draft/ContentCreateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ class ContentCreateType extends AbstractType
/** @var \Ibexa\Contracts\Core\Repository\LanguageService */
protected $languageService;

/** @var \Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface */
private $contentCreateContentTypeChoiceLoader;
private ContentCreateContentTypeChoiceLoader $contentCreateContentTypeChoiceLoader;

/** @var \Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface */
private $languageChoiceLoader;
Expand All @@ -44,7 +43,6 @@ class ContentCreateType extends AbstractType

/**
* @param \Ibexa\Contracts\Core\Repository\LanguageService $languageService
* @param \Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface $contentTypeChoiceLoader
* @param \Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface $languageChoiceLoader
* @param \Ibexa\Contracts\AdminUi\Permission\PermissionCheckerInterface $permissionChecker
* @param \Ibexa\AdminUi\Permission\LookupLimitationsTransformer $lookupLimitationsTransformer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testSubscribedEvents(): void
], $actualSubservients);
}

public function testSkipSuggestionComputationIfAggregationApiIsNotSupported(): void
public function testSkipSuggestionComputationIfAggregationAPIIsNotSupported(): void
{
$this->disableSupportForAggregationAPI();
$this->expectSuggestionsAreNotComputed();
Expand Down

0 comments on commit 4ff99fa

Please sign in to comment.