Skip to content

Commit f0edc87

Browse files
committed
Update CS
1 parent 3b71a86 commit f0edc87

File tree

7 files changed

+2
-29
lines changed

7 files changed

+2
-29
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'method_chaining_indentation' => false,
2222
'multiline_whitespace_before_semicolons' => false,
2323
'native_function_invocation' => ['include' => ['@all']],
24-
'no_superfluous_phpdoc_tags' => false,
24+
'no_superfluous_phpdoc_tags' => true,
2525
'no_unset_on_property' => false,
2626
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
2727
'php_unit_internal_class' => false,

bundle/View/Matcher/MatcherFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ public function match(View $view): ?array
4141

4242
/**
4343
* @param string $matcherIdentifier
44-
*
45-
* @return \Ibexa\Core\MVC\Symfony\Matcher\ViewMatcherInterface
4644
*/
4745
protected function getMatcher($matcherIdentifier): ViewMatcherInterface
4846
{

lib/API/Values/Content.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,11 @@ abstract public function getField(string $identifier): Field;
4646

4747
/**
4848
* Returns if content has the field with the given field $id.
49-
*
50-
* @param int $id
5149
*/
5250
abstract public function hasFieldById(int $id): bool;
5351

5452
/**
5553
* Return Field object for the given field $id.
56-
*
57-
* @param int $id
5854
*/
5955
abstract public function getFieldById(int $id): Field;
6056

@@ -73,8 +69,6 @@ abstract public function getFieldValue(string $identifier): Value;
7369

7470
/**
7571
* Returns a field value for the given field $id.
76-
*
77-
* @param int $id
7872
*/
7973
abstract public function getFieldValueById(int $id): Value;
8074

@@ -127,9 +121,6 @@ abstract public function getFieldRelationLocation(string $fieldDefinitionIdentif
127121
/**
128122
* Return all related Locations from $fieldDefinitionIdentifier.
129123
*
130-
* @param string $fieldDefinitionIdentifier
131-
* @param int $limit
132-
*
133124
* @return \Netgen\IbexaSiteApi\API\Values\Location[]
134125
*/
135126
abstract public function getFieldRelationLocations(string $fieldDefinitionIdentifier, int $limit = 25): array;
@@ -138,10 +129,7 @@ abstract public function getFieldRelationLocations(string $fieldDefinitionIdenti
138129
* Return related Locations from $fieldDefinitionIdentifier field,
139130
* optionally limited by a list of $contentTypeIdentifiers.
140131
*
141-
* @param string $fieldDefinitionIdentifier
142132
* @param string[] $contentTypeIdentifiers
143-
* @param int $maxPerPage
144-
* @param int $currentPage
145133
*
146134
* @return \Pagerfanta\Pagerfanta Pagerfanta instance iterating over Site API Locations
147135
*/

lib/API/Values/Fields.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,11 @@ abstract public function getField(string $identifier): Field;
2727

2828
/**
2929
* Return whether the collection contains a field with the given $id.
30-
*
31-
* @param int $id
3230
*/
3331
abstract public function hasFieldById(int $id): bool;
3432

3533
/**
3634
* Return the field with the given $id.
37-
*
38-
* @param int $id
3935
*/
4036
abstract public function getFieldById(int $id): Field;
4137

@@ -44,8 +40,6 @@ abstract public function getFieldById(int $id): Field;
4440
*
4541
* If no field is found in the Content, a surrogate field will be returned.
4642
* If all found fields are empty, the first found field will be returned.
47-
*
48-
* @param string ...$otherIdentifiers
4943
*/
5044
abstract public function getFirstNonEmptyField(string $firstIdentifier, string ...$otherIdentifiers): Field;
5145
}

lib/Core/Site/Exceptions/TranslationNotMatchedException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ class TranslationNotMatchedException extends APITranslationNotMatchedException i
2121

2222
/**
2323
* Generates: Could not match translation for Content '{$contentId}' in context '{$context}'.
24-
*
25-
* @param mixed $context
2624
*/
27-
public function __construct(int $contentId, $context, ?Exception $previous = null)
25+
public function __construct(int $contentId, mixed $context, ?Exception $previous = null)
2826
{
2927
$this->setMessageTemplate(
3028
"Could not match translation for Content '%contentId%' in context '%context%'",

lib/Core/Site/QueryType/CriterionDefinitionResolver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ final class CriterionDefinitionResolver
2121
{
2222
/**
2323
* Set of available operator names.
24-
*
25-
* @var array
2624
*/
2725
private static array $operatorMap = [
2826
'eq' => Operator::EQ,

tests/bundle/NamedObject/ParameterProcessorTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ protected function getParameterProcessorUnderTest(): ParameterProcessor
142142
);
143143
}
144144

145-
/**
146-
* @return \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface
147-
*/
148145
protected function getConfigResolverMock(): ConfigResolverInterface
149146
{
150147
$configResolverMock = $this->getMockBuilder(ConfigResolverInterface::class)->getMock();

0 commit comments

Comments
 (0)