Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 12, 2023
1 parent 15abebc commit d63436a
Show file tree
Hide file tree
Showing 155 changed files with 260 additions and 326 deletions.
4 changes: 1 addition & 3 deletions bundles/LayoutsAdminBundle/Serializer/Values/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
/**
* Represents a serialized value.
*/
final class Value extends AbstractValue
{
}
final class Value extends AbstractValue {}
4 changes: 1 addition & 3 deletions bundles/LayoutsAdminBundle/Serializer/Values/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
/**
* Represents a serialized value with a view.
*/
final class View extends AbstractValue
{
}
final class View extends AbstractValue {}
4 changes: 1 addition & 3 deletions bundles/LayoutsDebugBundle/NetgenLayoutsDebugBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Symfony\Component\HttpKernel\Bundle\Bundle;

final class NetgenLayoutsDebugBundle extends Bundle
{
}
final class NetgenLayoutsDebugBundle extends Bundle {}
4 changes: 1 addition & 3 deletions lib/API/Values/LayoutResolver/ConditionUpdateStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Netgen\Layouts\API\Values\LayoutResolver;

final class ConditionUpdateStruct extends ConditionStruct
{
}
final class ConditionUpdateStruct extends ConditionStruct {}
4 changes: 1 addition & 3 deletions lib/API/Values/LayoutResolver/TargetUpdateStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Netgen\Layouts\API\Values\LayoutResolver;

final class TargetUpdateStruct extends TargetStruct
{
}
final class TargetUpdateStruct extends TargetStruct {}
4 changes: 1 addition & 3 deletions lib/Attribute/AsCmsValueConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
* Service tag to autoconfigure value converters.
*/
#[Attribute(Attribute::TARGET_CLASS)]
final class AsCmsValueConverter
{
}
final class AsCmsValueConverter {}
4 changes: 1 addition & 3 deletions lib/Attribute/AsParameterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
* Service tag to autoconfigure parameter types.
*/
#[Attribute(Attribute::TARGET_CLASS)]
final class AsParameterType
{
}
final class AsParameterType {}
8 changes: 2 additions & 6 deletions lib/Block/BlockDefinition/BlockDefinitionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

abstract class BlockDefinitionHandler implements BlockDefinitionHandlerInterface
{
public function buildParameters(ParameterBuilderInterface $builder): void
{
}
public function buildParameters(ParameterBuilderInterface $builder): void {}

public function getDynamicParameters(DynamicParameters $params, Block $block): void
{
}
public function getDynamicParameters(DynamicParameters $params, Block $block): void {}

public function isContextual(Block $block): bool
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Netgen\Layouts\Block\BlockDefinition\Handler;

interface PagedCollectionsBlockInterface
{
}
interface PagedCollectionsBlockInterface {}
8 changes: 2 additions & 6 deletions lib/Block/BlockDefinition/Handler/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ public static function getExtendedHandlers(): iterable
return [];
}

public function buildParameters(ParameterBuilderInterface $builder): void
{
}
public function buildParameters(ParameterBuilderInterface $builder): void {}

public function getDynamicParameters(DynamicParameters $params, Block $block): void
{
}
public function getDynamicParameters(DynamicParameters $params, Block $block): void {}
}
4 changes: 1 addition & 3 deletions lib/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use BadMethodCallException as BaseBadMethodCallException;

final class BadMethodCallException extends BaseBadMethodCallException implements Exception
{
}
final class BadMethodCallException extends BaseBadMethodCallException implements Exception {}
4 changes: 1 addition & 3 deletions lib/Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Throwable;

interface Exception extends Throwable
{
}
interface Exception extends Throwable {}
4 changes: 1 addition & 3 deletions lib/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use RuntimeException as BaseRuntimeException;

final class RuntimeException extends BaseRuntimeException implements Exception
{
}
final class RuntimeException extends BaseRuntimeException implements Exception {}
4 changes: 1 addition & 3 deletions lib/HttpCache/NullClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

final class NullClient implements ClientInterface
{
public function purge(array $tags): void
{
}
public function purge(array $tags): void {}

public function commit(): bool
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Layout/Resolver/Form/ConditionType/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ public function getFormOptions(): array
return [];
}

public function handleForm(FormBuilderInterface $builder): void
{
}
public function handleForm(FormBuilderInterface $builder): void {}
}
4 changes: 1 addition & 3 deletions lib/Layout/Resolver/Form/TargetType/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ public function getFormOptions(): array
return [];
}

public function handleForm(FormBuilderInterface $builder): void
{
}
public function handleForm(FormBuilderInterface $builder): void {}
}
4 changes: 1 addition & 3 deletions lib/Parameters/CompoundParameterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@

abstract class CompoundParameterType extends ParameterType implements CompoundParameterTypeInterface
{
public function buildParameters(ParameterBuilderInterface $builder): void
{
}
public function buildParameters(ParameterBuilderInterface $builder): void {}
}
4 changes: 1 addition & 3 deletions lib/Parameters/Form/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ public function mapOptions(ParameterDefinition $parameterDefinition): array
return [];
}

public function handleForm(FormBuilderInterface $form, ParameterDefinition $parameterDefinition): void
{
}
public function handleForm(FormBuilderInterface $form, ParameterDefinition $parameterDefinition): void {}
}
4 changes: 1 addition & 3 deletions lib/Parameters/ParameterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ public function buildParameterDefinitions(): array
/**
* Configures the parameter options.
*/
protected function configureOptions(OptionsResolver $optionsResolver): void
{
}
protected function configureOptions(OptionsResolver $optionsResolver): void {}

/**
* Builds the parameter definition.
Expand Down
4 changes: 1 addition & 3 deletions lib/Parameters/ParameterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

abstract class ParameterType implements ParameterTypeInterface
{
public function configureOptions(OptionsResolver $optionsResolver): void
{
}
public function configureOptions(OptionsResolver $optionsResolver): void {}

public function getConstraints(ParameterDefinition $parameterDefinition, $value): array
{
Expand Down
8 changes: 2 additions & 6 deletions lib/Utils/BackwardsCompatibility/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
// Remove when support for Symfony 3.4 and lower ends.

if (Kernel::VERSION_ID >= 40400) {
abstract class Event extends ContractsEvent
{
}
abstract class Event extends ContractsEvent {}
} elseif (class_exists(LegacyEvent::class)) {
abstract class Event extends LegacyEvent
{
}
abstract class Event extends LegacyEvent {}
}
4 changes: 1 addition & 3 deletions tests/behat/Exception/PageException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Exception;

final class PageException extends Exception
{
}
final class PageException extends Exception {}
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function testOnExceptionWithNonAPIRequest(): void
self::assertSame($exception, $eventException);
}

public static function onExceptionDataProvider(): array
public static function onExceptionDataProvider(): iterable

Check failure on line 158 in tests/bundles/LayoutsAdminBundle/EventListener/ExceptionConversionListenerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\EventListener\ExceptionConversionListenerTest::onExceptionDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function testOnExceptionWithHttpException(int $statusCode, bool $loggerCa
);
}

public static function onExceptionWithHttpExceptionDataProvider(): array
public static function onExceptionWithHttpExceptionDataProvider(): iterable

Check failure on line 144 in tests/bundles/LayoutsAdminBundle/EventListener/ExceptionSerializerListenerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\EventListener\ExceptionSerializerListenerTest::onExceptionWithHttpExceptionDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[450, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
use Exception as BaseException;
use Netgen\Layouts\Exception\Exception;

final class ExceptionStub extends BaseException implements Exception
{
}
final class ExceptionStub extends BaseException implements Exception {}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable

Check failure on line 62 in tests/bundles/LayoutsAdminBundle/Serializer/Normalizer/ArrayValueNormalizerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\Serializer\Normalizer\ArrayValueNormalizerTest::supportsNormalizationDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable

Check failure on line 186 in tests/bundles/LayoutsAdminBundle/Serializer/Normalizer/BlockNormalizerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\Serializer\Normalizer\BlockNormalizerTest::supportsNormalizationDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable

Check failure on line 63 in tests/bundles/LayoutsAdminBundle/Serializer/Normalizer/BlockTypeGroupNormalizerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\Serializer\Normalizer\BlockTypeGroupNormalizerTest::supportsNormalizationDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable

Check failure on line 100 in tests/bundles/LayoutsAdminBundle/Serializer/Normalizer/BlockTypeNormalizerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\Serializer\Normalizer\BlockTypeNormalizerTest::supportsNormalizationDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable

Check failure on line 108 in tests/bundles/LayoutsAdminBundle/Serializer/Normalizer/CollectionItemNormalizerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\Serializer\Normalizer\CollectionItemNormalizerTest::supportsNormalizationDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable

Check failure on line 65 in tests/bundles/LayoutsAdminBundle/Serializer/Normalizer/CollectionNormalizerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\Serializer\Normalizer\CollectionNormalizerTest::supportsNormalizationDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable

Check failure on line 105 in tests/bundles/LayoutsAdminBundle/Serializer/Normalizer/CollectionQueryNormalizerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\Serializer\Normalizer\CollectionQueryNormalizerTest::supportsNormalizationDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable

Check failure on line 297 in tests/bundles/LayoutsAdminBundle/Serializer/Normalizer/CollectionResultNormalizerTest.php

View workflow job for this annotation

GitHub Actions / phpstan-tests

Method Netgen\Bundle\LayoutsAdminBundle\Tests\Serializer\Normalizer\CollectionResultNormalizerTest::supportsNormalizationDataProvider() return type has no value type specified in iterable type iterable.
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->exceptionNormalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function testSupportsNormalization($data, bool $expected): void
self::assertSame($expected, $this->normalizer->supportsNormalization($data));
}

public static function supportsNormalizationDataProvider(): array
public static function supportsNormalizationDataProvider(): iterable
{
return [
[null, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function testProcessWithEmptyContainer(): void
self::assertInstanceOf(FrozenParameterBag::class, $this->container->getParameterBag());
}

public static function processDataProvider(): array
public static function processDataProvider(): iterable
{
return [
['%test.class%', BlockDefinition::class],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

final class DummyExtensionPlugin extends BaseExtensionPlugin
{
public function addConfiguration(ArrayNodeDefinition $rootNode): void
{
}
public function addConfiguration(ArrayNodeDefinition $rootNode): void {}

public function appendConfigurationFiles(): array
{
Expand Down
Loading

0 comments on commit d63436a

Please sign in to comment.