Skip to content

Commit

Permalink
Update CS
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Feb 21, 2023
1 parent 3b71a86 commit f0edc87
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'method_chaining_indentation' => false,
'multiline_whitespace_before_semicolons' => false,
'native_function_invocation' => ['include' => ['@all']],
'no_superfluous_phpdoc_tags' => false,
'no_superfluous_phpdoc_tags' => true,
'no_unset_on_property' => false,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
'php_unit_internal_class' => false,
Expand Down
2 changes: 0 additions & 2 deletions bundle/View/Matcher/MatcherFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public function match(View $view): ?array

/**
* @param string $matcherIdentifier
*
* @return \Ibexa\Core\MVC\Symfony\Matcher\ViewMatcherInterface
*/
protected function getMatcher($matcherIdentifier): ViewMatcherInterface
{
Expand Down
12 changes: 0 additions & 12 deletions lib/API/Values/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,11 @@ abstract public function getField(string $identifier): Field;

/**
* Returns if content has the field with the given field $id.
*
* @param int $id
*/
abstract public function hasFieldById(int $id): bool;

/**
* Return Field object for the given field $id.
*
* @param int $id
*/
abstract public function getFieldById(int $id): Field;

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

/**
* Returns a field value for the given field $id.
*
* @param int $id
*/
abstract public function getFieldValueById(int $id): Value;

Expand Down Expand Up @@ -127,9 +121,6 @@ abstract public function getFieldRelationLocation(string $fieldDefinitionIdentif
/**
* Return all related Locations from $fieldDefinitionIdentifier.
*
* @param string $fieldDefinitionIdentifier
* @param int $limit
*
* @return \Netgen\IbexaSiteApi\API\Values\Location[]
*/
abstract public function getFieldRelationLocations(string $fieldDefinitionIdentifier, int $limit = 25): array;
Expand All @@ -138,10 +129,7 @@ abstract public function getFieldRelationLocations(string $fieldDefinitionIdenti
* Return related Locations from $fieldDefinitionIdentifier field,
* optionally limited by a list of $contentTypeIdentifiers.
*
* @param string $fieldDefinitionIdentifier
* @param string[] $contentTypeIdentifiers
* @param int $maxPerPage
* @param int $currentPage
*
* @return \Pagerfanta\Pagerfanta Pagerfanta instance iterating over Site API Locations
*/
Expand Down
6 changes: 0 additions & 6 deletions lib/API/Values/Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ abstract public function getField(string $identifier): Field;

/**
* Return whether the collection contains a field with the given $id.
*
* @param int $id
*/
abstract public function hasFieldById(int $id): bool;

/**
* Return the field with the given $id.
*
* @param int $id
*/
abstract public function getFieldById(int $id): Field;

Expand All @@ -44,8 +40,6 @@ abstract public function getFieldById(int $id): Field;
*
* If no field is found in the Content, a surrogate field will be returned.
* If all found fields are empty, the first found field will be returned.
*
* @param string ...$otherIdentifiers
*/
abstract public function getFirstNonEmptyField(string $firstIdentifier, string ...$otherIdentifiers): Field;
}
4 changes: 1 addition & 3 deletions lib/Core/Site/Exceptions/TranslationNotMatchedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ class TranslationNotMatchedException extends APITranslationNotMatchedException i

/**
* Generates: Could not match translation for Content '{$contentId}' in context '{$context}'.
*
* @param mixed $context
*/
public function __construct(int $contentId, $context, ?Exception $previous = null)
public function __construct(int $contentId, mixed $context, ?Exception $previous = null)
{
$this->setMessageTemplate(
"Could not match translation for Content '%contentId%' in context '%context%'",
Expand Down
2 changes: 0 additions & 2 deletions lib/Core/Site/QueryType/CriterionDefinitionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ final class CriterionDefinitionResolver
{
/**
* Set of available operator names.
*
* @var array
*/
private static array $operatorMap = [
'eq' => Operator::EQ,
Expand Down
3 changes: 0 additions & 3 deletions tests/bundle/NamedObject/ParameterProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ protected function getParameterProcessorUnderTest(): ParameterProcessor
);
}

/**
* @return \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface
*/
protected function getConfigResolverMock(): ConfigResolverInterface
{
$configResolverMock = $this->getMockBuilder(ConfigResolverInterface::class)->getMock();
Expand Down

0 comments on commit f0edc87

Please sign in to comment.