Skip to content

Commit

Permalink
chore: update php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Sep 1, 2023
1 parent c7892a6 commit d09cfc9
Show file tree
Hide file tree
Showing 22 changed files with 2 additions and 61 deletions.
2 changes: 0 additions & 2 deletions src/Doctrine/Common/State/PersistProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ public function process(mixed $data, Operation $operation, array $uriVariables =

/**
* Checks if doctrine does not manage data automatically.
*
* @param mixed $data
*/
private function isDeferredExplicit(DoctrineObjectManager $manager, $data): bool
{
Expand Down
2 changes: 0 additions & 2 deletions src/Doctrine/Common/State/RemoveProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public function process(mixed $data, Operation $operation, array $uriVariables =

/**
* Gets the Doctrine object manager associated with given data.
*
* @param mixed $data
*/
private function getManager($data): ?DoctrineObjectManager
{
Expand Down
2 changes: 0 additions & 2 deletions src/Doctrine/Odm/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public function apply(Builder $aggregationBuilder, string $resourceClass, Operat

/**
* Passes a property through the filter.
*
* @param mixed $value
*/
abstract protected function filterProperty(string $property, $value, Builder $aggregationBuilder, string $resourceClass, Operation $operation = null, array &$context = []): void;

Expand Down
2 changes: 0 additions & 2 deletions src/Doctrine/Odm/Filter/DateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ protected function filterProperty(string $property, $values, Builder $aggregatio

/**
* Adds the match stage according to the chosen null management.
*
* @param mixed $value
*/
private function addMatch(Builder $aggregationBuilder, string $field, string $operator, $value, string $nullManagement = null): void
{
Expand Down
2 changes: 0 additions & 2 deletions src/Doctrine/Orm/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public function apply(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $q

/**
* Passes a property through the filter.
*
* @param mixed $value
*/
abstract protected function filterProperty(string $property, $value, QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, Operation $operation = null, array $context = []): void;

Expand Down
2 changes: 0 additions & 2 deletions src/GraphQl/ExecutorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ interface ExecutorInterface
{
/**
* @see http://webonyx.github.io/graphql-php/executing-queries/#using-facade-method
*
* @param mixed $source
*/
public function executeQuery(Schema $schema, $source, mixed $rootValue = null, mixed $context = null, array $variableValues = null, string $operationName = null, callable $fieldResolver = null, array $validationRules = null): ExecutionResult;
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ public static function groupsProvider(): array

/**
* @dataProvider groupsProvider
*
* @param mixed $readGroups
* @param mixed $writeGroups
*/
public function testCreate($readGroups, $writeGroups): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ public function testCreateMethodReturnsProperPropertyNameCollectionForObjectWith
$collection = $factory->create(DummyIgnoreProperty::class, ['serializer_groups' => ['dummy']]);

self::assertCount(1, $collection);
self::assertNotContains('ignored', $collection);
self::assertNotContains('ignored', (array) $collection);

$collection = $factory->create(DummyIgnoreProperty::class);

self::assertCount(2, $collection);
self::assertNotContains('ignored', $collection);
self::assertNotContains('ignored', (array) $collection);
}
}
2 changes: 0 additions & 2 deletions src/Symfony/EventListener/SerializeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ public function onKernelView(ViewEvent $event): void
/**
* Tries to serialize data that are not API resources (e.g. the entrypoint or data returned by a custom controller).
*
* @param mixed $controllerResult
*
* @throws RuntimeException
*/
private function serializeRawData(ViewEvent $event, Request $request, $controllerResult): void
Expand Down
2 changes: 0 additions & 2 deletions src/Util/IriHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public static function parseIri(string $iri, string $pageParameterName): array

/**
* Gets a collection IRI for the given parameters.
*
* @param mixed $urlGenerationStrategy
*/
public static function createIri(array $parts, array $parameters, string $pageParameterName = null, float $page = null, $urlGenerationStrategy = UrlGeneratorInterface::ABS_PATH): string
{
Expand Down
4 changes: 0 additions & 4 deletions tests/Behat/DoctrineContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ public function thereAreFooObjectsWithFakeNames(int $nb): void

/**
* @Given there are :nb fooDummy objects with fake names
*
* @param mixed $nb
*/
public function thereAreFooDummyObjectsWithFakeNames($nb): void
{
Expand Down Expand Up @@ -1782,8 +1780,6 @@ public function thereIsADummyDtoCustom(): void

/**
* @Given there are :nb DummyDtoCustom
*
* @param mixed $nb
*/
public function thereAreNbDummyDtoCustom($nb): void
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Fixtures/TestBundle/Document/DummyImmutableDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class DummyImmutableDate

/**
* Get id.
*
* @return int
*/
public function getId(): ?int
{
Expand Down
3 changes: 0 additions & 3 deletions tests/Fixtures/TestBundle/Document/ProcessorEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ class ProcessorEntity
#[ODM\Field]
private ?string $foo = null;

/**
* @return int
*/
public function getId(): ?int
{
return $this->id;
Expand Down
3 changes: 0 additions & 3 deletions tests/Fixtures/TestBundle/Document/ProviderEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ class ProviderEntity
#[ODM\Field]
private ?string $foo = null;

/**
* @return int
*/
public function getId(): ?int
{
return $this->id;
Expand Down
3 changes: 0 additions & 3 deletions tests/Fixtures/TestBundle/Entity/PaginationEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class PaginationEntity
#[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null;

/**
* @return int
*/
public function getId(): ?int
{
return $this->id;
Expand Down
3 changes: 0 additions & 3 deletions tests/Fixtures/TestBundle/Entity/ProcessorEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ class ProcessorEntity
#[Assert\NotBlank]
private string $foo;

/**
* @return int
*/
public function getId(): ?int
{
return $this->id;
Expand Down
3 changes: 0 additions & 3 deletions tests/Fixtures/TestBundle/Entity/ProviderEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class ProviderEntity
#[Assert\NotBlank]
private string $foo;

/**
* @return int
*/
public function getId(): ?int
{
return $this->id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public function __construct(private readonly NormalizerInterface $documentationN

/**
* @param mixed|null $format
* @param mixed $object
*
* @throws ExceptionInterface
*/
Expand All @@ -50,7 +49,6 @@ public function normalize($object, $format = null, array $context = [])

/**
* @param mixed|null $format
* @param mixed $data
*/
public function supportsNormalization($data, $format = null): bool
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ public function process(mixed $data, Operation $operation, array $uriVariables =

/**
* Gets the Doctrine object manager associated with given data.
*
* @param mixed $data
*/
private function getManager($data): ?DoctrineObjectManager
{
Expand All @@ -79,8 +77,6 @@ private function getManager($data): ?DoctrineObjectManager

/**
* Checks if doctrine does not manage data automatically.
*
* @param mixed $data
*/
private function isDeferredExplicit(DoctrineObjectManager $manager, $data): bool
{
Expand Down
7 changes: 0 additions & 7 deletions tests/State/Pagination/ArrayPaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ class ArrayPaginatorTest extends TestCase
{
/**
* @dataProvider initializeProvider
*
* @param mixed $firstResult
* @param mixed $maxResults
* @param mixed $currentItems
* @param mixed $totalItems
* @param mixed $currentPage
* @param mixed $lastPage
*/
public function testInitialize(array $results, $firstResult, $maxResults, $currentItems, $totalItems, $currentPage, $lastPage): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ public static function invalidHttpStatusCodeProvider(): array

/**
* @dataProvider invalidHttpStatusCodeProvider
*
* @param mixed $invalidHttpStatusCode
*/
public function testExceptionToStatusConfigWithInvalidHttpStatusCode($invalidHttpStatusCode): void
{
Expand Down Expand Up @@ -263,8 +261,6 @@ public static function invalidHttpStatusCodeValueProvider(): array

/**
* @dataProvider invalidHttpStatusCodeValueProvider
*
* @param mixed $invalidHttpStatusCodeValue
*/
public function testExceptionToStatusConfigWithInvalidHttpStatusCodeValue($invalidHttpStatusCodeValue): void
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Symfony/Bundle/Test/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ public function testDefaultHeaders(): void

/**
* @dataProvider authBasicProvider
*
* @param mixed $basic
*/
public function testAuthBasic($basic): void
{
Expand Down

0 comments on commit d09cfc9

Please sign in to comment.