diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ab6c1f268..b0271c18b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,10 +1,9 @@ name: CI on: - pull_request: - branches: [ master ] - push: - branches: [ master ] + pull_request: + push: + branches: [ master, 2.x, 1.x ] jobs: run: diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index 373bdcf67..7f5d52c40 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -21,9 +21,11 @@ jobs: - name: Install dependencies run: composer install --no-progress --no-interaction --prefer-dist -# run phpcs -# - name: Run script -# run: vendor/bin/phpcs + - name: Install dependencies + run: composer bin php-cs-fixer update + + - name: Run script + run: vendor-bin/php-cs-fixer/bin/php-cs-fixer fix --verbose --diff --dry-run phpstan: name: PHPStan diff --git a/fixtures/Definition/FakeMethodCall.php b/fixtures/Definition/FakeMethodCall.php index 94bcc1827..405488092 100644 --- a/fixtures/Definition/FakeMethodCall.php +++ b/fixtures/Definition/FakeMethodCall.php @@ -18,31 +18,26 @@ class FakeMethodCall implements MethodCallInterface { use NotCallableTrait; - public function withArguments(array $arguments = null): void { $this->__call(__METHOD__, func_get_args()); } - public function getCaller(): void { $this->__call(__METHOD__, func_get_args()); } - public function getMethod(): string { $this->__call(__METHOD__, func_get_args()); } - public function getArguments(): array { $this->__call(__METHOD__, func_get_args()); } - public function __toString(): string { diff --git a/fixtures/Definition/Fixture/DummyFixture.php b/fixtures/Definition/Fixture/DummyFixture.php index c1e97a224..86aeed613 100644 --- a/fixtures/Definition/Fixture/DummyFixture.php +++ b/fixtures/Definition/Fixture/DummyFixture.php @@ -30,31 +30,26 @@ public function __construct(string $id) { $this->id = $id; } - public function getId(): string { return $this->id; } - public function getClassName(): string { $this->__call(__METHOD__, func_get_args()); } - public function getSpecs(): SpecificationBag { $this->__call(__METHOD__, func_get_args()); } - public function getValueForCurrent(): void { $this->__call(__METHOD__, func_get_args()); } - public function withSpecs(SpecificationBag $specs): void { diff --git a/fixtures/Definition/Fixture/FakeFixture.php b/fixtures/Definition/Fixture/FakeFixture.php index e095f7013..eec38e1b6 100644 --- a/fixtures/Definition/Fixture/FakeFixture.php +++ b/fixtures/Definition/Fixture/FakeFixture.php @@ -20,31 +20,26 @@ class FakeFixture implements FixtureInterface { use NotCallableTrait; - public function getId(): string { $this->__call(__METHOD__, func_get_args()); } - public function getClassName(): string { $this->__call(__METHOD__, func_get_args()); } - public function getSpecs(): SpecificationBag { $this->__call(__METHOD__, func_get_args()); } - public function getValueForCurrent(): void { $this->__call(__METHOD__, func_get_args()); } - public function withSpecs(SpecificationBag $specs): void { diff --git a/fixtures/Definition/Fixture/MutableFixture.php b/fixtures/Definition/Fixture/MutableFixture.php index 87fdf8268..184627bf7 100644 --- a/fixtures/Definition/Fixture/MutableFixture.php +++ b/fixtures/Definition/Fixture/MutableFixture.php @@ -42,19 +42,16 @@ public function __construct(string $id, string $className, SpecificationBag $spe $this->className = $className; $this->specs = $specs; } - public function getId(): string { return $this->id; } - public function getClassName(): string { return $this->className; } - public function getSpecs(): SpecificationBag { @@ -65,13 +62,11 @@ public function setSpecs(SpecificationBag $specs): void { $this->specs = $specs; } - public function getValueForCurrent(): void { $this->__call(__METHOD__, func_get_args()); } - public function withSpecs(SpecificationBag $specs): void { diff --git a/fixtures/Definition/Flag/ElementFlag.php b/fixtures/Definition/Flag/ElementFlag.php index 1763fe7f9..60b35c53e 100644 --- a/fixtures/Definition/Flag/ElementFlag.php +++ b/fixtures/Definition/Flag/ElementFlag.php @@ -27,7 +27,6 @@ public function __construct(string $element) $this->element = $element; } - public function __toString(): string { return $this->element; diff --git a/fixtures/Definition/Flag/ElementWithToStringFlag.php b/fixtures/Definition/Flag/ElementWithToStringFlag.php index c7dcbe0d2..641dc5004 100644 --- a/fixtures/Definition/Flag/ElementWithToStringFlag.php +++ b/fixtures/Definition/Flag/ElementWithToStringFlag.php @@ -32,7 +32,6 @@ public function __construct(string $element, string $toString) $this->element = $element; $this->toString = $toString; } - public function __toString(): string { diff --git a/fixtures/Definition/Flag/MutableFlag.php b/fixtures/Definition/Flag/MutableFlag.php index 4594cf959..c5ef8220b 100644 --- a/fixtures/Definition/Flag/MutableFlag.php +++ b/fixtures/Definition/Flag/MutableFlag.php @@ -32,7 +32,6 @@ public function __construct(string $stringValue, $object) $this->stringValue = $stringValue; $this->object = $object; } - public function __toString(): string { diff --git a/fixtures/Definition/MethodCall/DummyMethodCall.php b/fixtures/Definition/MethodCall/DummyMethodCall.php index c4d000e90..30e327e92 100644 --- a/fixtures/Definition/MethodCall/DummyMethodCall.php +++ b/fixtures/Definition/MethodCall/DummyMethodCall.php @@ -35,31 +35,26 @@ public function __construct(string $toString) $this->token = uniqid(); $this->toString = $toString; } - public function withArguments(array $arguments = null): self { $this->__call(__METHOD__, func_get_args()); } - public function getCaller(): void { $this->__call(__METHOD__, func_get_args()); } - public function getMethod(): string { $this->__call(__METHOD__, func_get_args()); } - public function getArguments(): array { $this->__call(__METHOD__, func_get_args()); } - public function __toString(): string { diff --git a/fixtures/Definition/MethodCall/MutableMethodCall.php b/fixtures/Definition/MethodCall/MutableMethodCall.php index 42c000d8e..8c9c63eaf 100644 --- a/fixtures/Definition/MethodCall/MutableMethodCall.php +++ b/fixtures/Definition/MethodCall/MutableMethodCall.php @@ -40,13 +40,11 @@ public function __construct(ServiceReferenceInterface $caller = null, $method, a $this->method = $method; $this->arguments = $arguments; } - public function withArguments(array $arguments = null): void { $this->__call(__METHOD__, func_get_args()); } - public function getCaller() { @@ -57,7 +55,6 @@ public function setCaller(ServiceReferenceInterface $caller = null): void { $this->caller = $caller; } - public function getMethod(): string { @@ -68,7 +65,6 @@ public function setMethod($method): void { $this->method = $method; } - public function getArguments() { @@ -79,7 +75,6 @@ public function setArguments(array $arguments = null): void { $this->arguments = $arguments; } - public function __toString(): string { diff --git a/fixtures/Definition/Object/ImmutableByCloneObject.php b/fixtures/Definition/Object/ImmutableByCloneObject.php index 6b75b4664..83d9ca616 100644 --- a/fixtures/Definition/Object/ImmutableByCloneObject.php +++ b/fixtures/Definition/Object/ImmutableByCloneObject.php @@ -32,19 +32,16 @@ public function __construct(string $id, object $instance) $this->id = $id; $this->instance = $instance; } - public function getId(): string { return $this->id; } - public function getInstance() { return $this->instance; } - public function withInstance(object $newInstance) { diff --git a/fixtures/Definition/Object/ImmutableObject.php b/fixtures/Definition/Object/ImmutableObject.php index 3a1c59cf9..b3148ac43 100644 --- a/fixtures/Definition/Object/ImmutableObject.php +++ b/fixtures/Definition/Object/ImmutableObject.php @@ -36,19 +36,16 @@ public function __construct(string $id, $instance) $this->id = $id; $this->instance = deep_clone($instance); } - public function getId(): string { return $this->id; } - public function getInstance() { return deep_clone($this->instance); } - public function withInstance($newInstance) { diff --git a/fixtures/Definition/ServiceReference/FakeReference.php b/fixtures/Definition/ServiceReference/FakeReference.php index b64c6ce95..7a0cc9947 100644 --- a/fixtures/Definition/ServiceReference/FakeReference.php +++ b/fixtures/Definition/ServiceReference/FakeReference.php @@ -19,7 +19,6 @@ class FakeReference implements ServiceReferenceInterface { use NotCallableTrait; - public function getId(): string { diff --git a/fixtures/Definition/ServiceReference/MutableReference.php b/fixtures/Definition/ServiceReference/MutableReference.php index 862b29d1e..115c3766b 100644 --- a/fixtures/Definition/ServiceReference/MutableReference.php +++ b/fixtures/Definition/ServiceReference/MutableReference.php @@ -23,7 +23,6 @@ public function setId(string $id): void { $this->id = $id; } - public function getId(): string { diff --git a/fixtures/Definition/Value/DummyValue.php b/fixtures/Definition/Value/DummyValue.php index 9bf9e93a8..b261d948c 100644 --- a/fixtures/Definition/Value/DummyValue.php +++ b/fixtures/Definition/Value/DummyValue.php @@ -26,13 +26,11 @@ public function __construct(string $value) { $this->value = $value; } - public function getValue() { return $this->value; } - public function __toString(): string { diff --git a/fixtures/Definition/Value/FakeObject.php b/fixtures/Definition/Value/FakeObject.php index dea0c6e14..81815d5cc 100644 --- a/fixtures/Definition/Value/FakeObject.php +++ b/fixtures/Definition/Value/FakeObject.php @@ -19,19 +19,16 @@ class FakeObject implements ObjectInterface { use NotCallableTrait; - public function getId(): string { $this->__call(__METHOD__, func_get_args()); } - public function getInstance(): void { $this->__call(__METHOD__, func_get_args()); } - public function withInstance($newInstance): void { diff --git a/fixtures/Definition/Value/FakeValue.php b/fixtures/Definition/Value/FakeValue.php index c2dea6aa1..a6a2e9bd8 100644 --- a/fixtures/Definition/Value/FakeValue.php +++ b/fixtures/Definition/Value/FakeValue.php @@ -19,13 +19,11 @@ class FakeValue implements ValueInterface { use NotCallableTrait; - public function getValue(): void { $this->__call(__METHOD__, func_get_args()); } - public function __toString(): string { diff --git a/fixtures/Definition/Value/MutableValue.php b/fixtures/Definition/Value/MutableValue.php index 63ffb7d7c..5c7ce48a4 100644 --- a/fixtures/Definition/Value/MutableValue.php +++ b/fixtures/Definition/Value/MutableValue.php @@ -23,7 +23,6 @@ public function __construct($value) { $this->value = $value; } - public function getValue() { @@ -34,7 +33,6 @@ public function setValue($value): void { $this->value = $value; } - public function __toString(): string { diff --git a/fixtures/Entity/DummyWithNoArgumentConstructor.php b/fixtures/Entity/DummyWithNoArgumentConstructor.php index 255d1ab2e..78b34e1a0 100644 --- a/fixtures/Entity/DummyWithNoArgumentConstructor.php +++ b/fixtures/Entity/DummyWithNoArgumentConstructor.php @@ -25,9 +25,6 @@ public function __construct() $this->args = func_get_args(); } - /** - * @return array - */ public function getArgs(): array { return $this->args; diff --git a/fixtures/FileLocator/FakeFileLocator.php b/fixtures/FileLocator/FakeFileLocator.php index b008da4aa..24f55fb8c 100644 --- a/fixtures/FileLocator/FakeFileLocator.php +++ b/fixtures/FileLocator/FakeFileLocator.php @@ -19,7 +19,6 @@ class FakeFileLocator implements FileLocatorInterface { use NotCallableTrait; - public function locate(string $name, string $currentPath = null): string { diff --git a/fixtures/FixtureBuilder/Denormalizer/FakeDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/FakeDenormalizer.php index df37ffacf..ff1ae914b 100644 --- a/fixtures/FixtureBuilder/Denormalizer/FakeDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/FakeDenormalizer.php @@ -20,7 +20,6 @@ class FakeDenormalizer implements DenormalizerInterface { use NotCallableTrait; - public function denormalize(array $data): BareFixtureSet { diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/DummyChainableParserAwareDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/DummyChainableParserAwareDenormalizer.php index bcfaee23c..22889f75c 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/DummyChainableParserAwareDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/DummyChainableParserAwareDenormalizer.php @@ -41,13 +41,11 @@ public function __construct(ChainableFixtureDenormalizerInterface $decoratedDeno $this->decoratedDenormalizer = $decoratedDenormalizer; $this->decoratedFlagAware = $decoratedFlagAware; } - public function canDenormalize(string $reference): bool { return $this->decoratedDenormalizer->canDenormalize($reference); } - public function denormalize( FixtureBag $builtFixtures, @@ -58,7 +56,6 @@ public function denormalize( ): FixtureBag { return $this->decoratedDenormalizer->denormalize($builtFixtures, $className, $fixtureId, $specs, $flags); } - public function withFlagParser(FlagParserInterface $parser) { diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizer.php index 68312a641..9a4ef1523 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizer.php @@ -21,13 +21,11 @@ class FakeChainableDenormalizer implements ChainableFixtureDenormalizerInterface { use NotCallableTrait; - public function canDenormalize(string $reference): bool { $this->__call(__FUNCTION__, func_get_args()); } - public function denormalize( FixtureBag $builtFixtures, diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizerAwareDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizerAwareDenormalizer.php index 79fefa5a3..0abe4871e 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizerAwareDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizerAwareDenormalizer.php @@ -38,13 +38,11 @@ public function withFixtureDenormalizer(FixtureDenormalizerInterface $denormaliz return $this; } - public function canDenormalize(string $reference): bool { $this->__call(__FUNCTION__, func_get_args()); } - public function denormalize( FixtureBag $builtFixtures, diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/FakeFixtureBagDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/FakeFixtureBagDenormalizer.php index 610e1735f..a68f24846 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/FakeFixtureBagDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/FakeFixtureBagDenormalizer.php @@ -20,7 +20,6 @@ class FakeFixtureBagDenormalizer implements FixtureBagDenormalizerInterface { use NotCallableTrait; - public function denormalize(array $data): FixtureBag { diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/FakeFixtureDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/FakeFixtureDenormalizer.php index bdf17a4cf..5cd73bcba 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/FakeFixtureDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/FakeFixtureDenormalizer.php @@ -20,7 +20,6 @@ class FakeFixtureDenormalizer implements FixtureDenormalizerInterface { use NotCallableTrait; - public function denormalize( FixtureBag $builtFixtures, diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Arguments/FakeArgumentsDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Arguments/FakeArgumentsDenormalizer.php index d4f11c0ab..f013de947 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Arguments/FakeArgumentsDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Arguments/FakeArgumentsDenormalizer.php @@ -21,7 +21,6 @@ class FakeArgumentsDenormalizer implements ArgumentsDenormalizerInterface { use NotCallableTrait; - public function denormalize(FixtureInterface $scope, FlagParserInterface $parser, array $unparsedArguments): array { diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/FakeCallsDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/FakeCallsDenormalizer.php index a889a7839..dd4ceebf2 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/FakeCallsDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/FakeCallsDenormalizer.php @@ -22,7 +22,6 @@ class FakeCallsDenormalizer implements CallsDenormalizerInterface { use NotCallableTrait; - public function denormalize( FixtureInterface $scope, diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/FakeConstructorDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/FakeConstructorDenormalizer.php index 923f7d4eb..8a17cf6da 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/FakeConstructorDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/FakeConstructorDenormalizer.php @@ -22,7 +22,6 @@ class FakeConstructorDenormalizer implements ConstructorDenormalizerInterface { use NotCallableTrait; - public function denormalize( FixtureInterface $scope, diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/DummySpecificationBagDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/DummySpecificationBagDenormalizer.php index ae441effe..7c4374728 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/DummySpecificationBagDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/DummySpecificationBagDenormalizer.php @@ -23,7 +23,6 @@ class DummySpecificationBagDenormalizer implements SpecificationsDenormalizerInterface { use NotCallableTrait; - public function denormalize( FixtureInterface $fixture, diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/FakeSpecificationBagDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/FakeSpecificationBagDenormalizer.php index af0d11be9..b14f3bf95 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/FakeSpecificationBagDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/FakeSpecificationBagDenormalizer.php @@ -22,7 +22,6 @@ class FakeSpecificationBagDenormalizer implements SpecificationsDenormalizerInterface { use NotCallableTrait; - public function denormalize( FixtureInterface $fixture, diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Property/FakePropertyDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Property/FakePropertyDenormalizer.php index af040d049..0dbc72fcc 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Property/FakePropertyDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Property/FakePropertyDenormalizer.php @@ -22,7 +22,6 @@ class FakePropertyDenormalizer implements PropertyDenormalizerInterface { use NotCallableTrait; - public function denormalize(FixtureInterface $scope, string $name, $value, FlagBag $flags): Property { diff --git a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/FakeValueDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/FakeValueDenormalizer.php index a19a7b90c..04a6c18ac 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/FakeValueDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/FakeValueDenormalizer.php @@ -21,7 +21,6 @@ class FakeValueDenormalizer implements ValueDenormalizerInterface { use NotCallableTrait; - public function denormalize(FixtureInterface $scope, FlagBag $flags = null, $value): void { diff --git a/fixtures/FixtureBuilder/Denormalizer/FlagParser/Chainable/FakeChainableFlagParser.php b/fixtures/FixtureBuilder/Denormalizer/FlagParser/Chainable/FakeChainableFlagParser.php index baebf6459..cc8dde47f 100644 --- a/fixtures/FixtureBuilder/Denormalizer/FlagParser/Chainable/FakeChainableFlagParser.php +++ b/fixtures/FixtureBuilder/Denormalizer/FlagParser/Chainable/FakeChainableFlagParser.php @@ -20,13 +20,11 @@ class FakeChainableFlagParser implements ChainableFlagParserInterface { use NotCallableTrait; - public function canParse(string $element): bool { $this->__call(__FUNCTION__, func_get_args()); } - public function parse(string $element): FlagBag { diff --git a/fixtures/FixtureBuilder/Denormalizer/FlagParser/DummyFlagParser.php b/fixtures/FixtureBuilder/Denormalizer/FlagParser/DummyFlagParser.php index b6f407d61..78e99b776 100644 --- a/fixtures/FixtureBuilder/Denormalizer/FlagParser/DummyFlagParser.php +++ b/fixtures/FixtureBuilder/Denormalizer/FlagParser/DummyFlagParser.php @@ -20,7 +20,6 @@ class DummyFlagParser implements FlagParserInterface { use NotCallableTrait; - public function parse(string $element): FlagBag { diff --git a/fixtures/FixtureBuilder/Denormalizer/FlagParser/FakeFlagParser.php b/fixtures/FixtureBuilder/Denormalizer/FlagParser/FakeFlagParser.php index 681a9ff21..d00b451da 100644 --- a/fixtures/FixtureBuilder/Denormalizer/FlagParser/FakeFlagParser.php +++ b/fixtures/FixtureBuilder/Denormalizer/FlagParser/FakeFlagParser.php @@ -20,7 +20,6 @@ class FakeFlagParser implements FlagParserInterface { use NotCallableTrait; - public function parse(string $element): FlagBag { diff --git a/fixtures/FixtureBuilder/Denormalizer/Parameter/FakeParameterBagDenormalizer.php b/fixtures/FixtureBuilder/Denormalizer/Parameter/FakeParameterBagDenormalizer.php index 41c8963bc..974db167e 100644 --- a/fixtures/FixtureBuilder/Denormalizer/Parameter/FakeParameterBagDenormalizer.php +++ b/fixtures/FixtureBuilder/Denormalizer/Parameter/FakeParameterBagDenormalizer.php @@ -20,7 +20,6 @@ class FakeParameterBagDenormalizer implements ParameterBagDenormalizerInterface { use NotCallableTrait; - public function denormalize(array $data): ParameterBag { diff --git a/fixtures/FixtureBuilder/ExpressionLanguage/Lexer/DummyLexer.php b/fixtures/FixtureBuilder/ExpressionLanguage/Lexer/DummyLexer.php index 4bd88fc90..276a8a023 100644 --- a/fixtures/FixtureBuilder/ExpressionLanguage/Lexer/DummyLexer.php +++ b/fixtures/FixtureBuilder/ExpressionLanguage/Lexer/DummyLexer.php @@ -19,7 +19,6 @@ class DummyLexer implements LexerInterface { use NotCallableTrait; - public function lex(string $value): array { diff --git a/fixtures/FixtureBuilder/ExpressionLanguage/Lexer/FakeLexer.php b/fixtures/FixtureBuilder/ExpressionLanguage/Lexer/FakeLexer.php index cc1f351fd..cbb947aec 100644 --- a/fixtures/FixtureBuilder/ExpressionLanguage/Lexer/FakeLexer.php +++ b/fixtures/FixtureBuilder/ExpressionLanguage/Lexer/FakeLexer.php @@ -19,7 +19,6 @@ class FakeLexer implements LexerInterface { use NotCallableTrait; - public function lex(string $value): array { diff --git a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/FakeParser.php b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/FakeParser.php index 0e18cb9c0..2c31a43c4 100644 --- a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/FakeParser.php +++ b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/FakeParser.php @@ -19,7 +19,6 @@ class FakeParser implements ParserInterface { use NotCallableTrait; - public function parse(string $value): void { diff --git a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/DummyChainableTokenParserAware.php b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/DummyChainableTokenParserAware.php index 5a759ab3a..50ffb7b7b 100644 --- a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/DummyChainableTokenParserAware.php +++ b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/DummyChainableTokenParserAware.php @@ -24,13 +24,11 @@ class DummyChainableTokenParserAware implements ChainableTokenParserInterface, P * @var ParserInterface|null */ public $parser; - public function canParse(Token $token): bool { return false; } - public function withParser(ParserInterface $parser) { @@ -38,7 +36,6 @@ public function withParser(ParserInterface $parser) return $this; } - public function parse(Token $token) { diff --git a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FakeChainableTokenParser.php b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FakeChainableTokenParser.php index 22a1a28eb..8bde95cd1 100644 --- a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FakeChainableTokenParser.php +++ b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FakeChainableTokenParser.php @@ -20,13 +20,11 @@ class FakeChainableTokenParser implements ChainableTokenParserInterface { use NotCallableTrait; - public function canParse(Token $token): bool { $this->__call(__METHOD__, func_get_args()); } - public function parse(Token $token): void { diff --git a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/ImpartialChainableParserAwareParser.php b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/ImpartialChainableParserAwareParser.php index f41dc2aaf..c408e2e97 100644 --- a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/ImpartialChainableParserAwareParser.php +++ b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/ImpartialChainableParserAwareParser.php @@ -19,7 +19,6 @@ class ImpartialChainableParserAwareParser extends AbstractChainableParserAwareParser { use NotCallableTrait; - public function canParse(Token $token): bool { diff --git a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/ProphecyChainableTokenParserAware.php b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/ProphecyChainableTokenParserAware.php index 69532ceb9..303c45b17 100644 --- a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/ProphecyChainableTokenParserAware.php +++ b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/ProphecyChainableTokenParserAware.php @@ -35,19 +35,16 @@ public function __construct(ChainableTokenParserInterface $decoratedParser, Pars $this->decoratedParser = $decoratedParser; $this->decoratedAware = $decoratedAware; } - public function canParse(Token $token): bool { return $this->decoratedParser->canParse($token); } - public function withParser(ParserInterface $parser) { return $this->decoratedAware->withParser($parser); } - public function parse(Token $token) { diff --git a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/FakeTokenParser.php b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/FakeTokenParser.php index 8cd405d58..6605338d0 100644 --- a/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/FakeTokenParser.php +++ b/fixtures/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/FakeTokenParser.php @@ -20,7 +20,6 @@ class FakeTokenParser implements TokenParserInterface { use NotCallableTrait; - public function parse(Token $token): void { diff --git a/fixtures/FixtureBuilder/FakeFixtureBuilder.php b/fixtures/FixtureBuilder/FakeFixtureBuilder.php index a7def7e43..7f628b20a 100644 --- a/fixtures/FixtureBuilder/FakeFixtureBuilder.php +++ b/fixtures/FixtureBuilder/FakeFixtureBuilder.php @@ -20,7 +20,6 @@ class FakeFixtureBuilder implements FixtureBuilderInterface { use NotCallableTrait; - public function build(array $data, array $parameters = [], array $objects = []): FixtureSet { diff --git a/fixtures/Generator/Caller/FakeCallProcessor.php b/fixtures/Generator/Caller/FakeCallProcessor.php index 6d1add8a4..c77d11b31 100644 --- a/fixtures/Generator/Caller/FakeCallProcessor.php +++ b/fixtures/Generator/Caller/FakeCallProcessor.php @@ -22,7 +22,6 @@ class FakeCallProcessor implements CallProcessorInterface { use NotCallableTrait; - public function process( ObjectInterface $object, diff --git a/fixtures/Generator/Caller/FakeCaller.php b/fixtures/Generator/Caller/FakeCaller.php index 2be1447f1..37301fe48 100644 --- a/fixtures/Generator/Caller/FakeCaller.php +++ b/fixtures/Generator/Caller/FakeCaller.php @@ -22,7 +22,6 @@ class FakeCaller implements CallerInterface { use NotCallableTrait; - public function doCallsOn(ObjectInterface $object, ResolvedFixtureSet $fixtureSet, GenerationContext $context): ResolvedFixtureSet { diff --git a/fixtures/Generator/FakeGenerator.php b/fixtures/Generator/FakeGenerator.php index 32a7d957b..1faed227d 100644 --- a/fixtures/Generator/FakeGenerator.php +++ b/fixtures/Generator/FakeGenerator.php @@ -21,7 +21,6 @@ class FakeGenerator implements GeneratorInterface { use NotCallableTrait; - public function generate(FixtureSet $fixtureSet): ObjectSet { diff --git a/fixtures/Generator/FakeObjectGenerator.php b/fixtures/Generator/FakeObjectGenerator.php index 1f6e639e6..3fb8f8c7c 100644 --- a/fixtures/Generator/FakeObjectGenerator.php +++ b/fixtures/Generator/FakeObjectGenerator.php @@ -20,7 +20,6 @@ class FakeObjectGenerator implements ObjectGeneratorInterface { use NotCallableTrait; - public function generate(FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context): ObjectBag { diff --git a/fixtures/Generator/Hydrator/FakeHydrator.php b/fixtures/Generator/Hydrator/FakeHydrator.php index 60d1fa9fa..9cbf918f5 100644 --- a/fixtures/Generator/Hydrator/FakeHydrator.php +++ b/fixtures/Generator/Hydrator/FakeHydrator.php @@ -22,7 +22,6 @@ class FakeHydrator implements HydratorInterface { use NotCallableTrait; - public function hydrate(ObjectInterface $object, ResolvedFixtureSet $fixtureSet, GenerationContext $context): ResolvedFixtureSet { diff --git a/fixtures/Generator/Hydrator/FakePropertyHydrator.php b/fixtures/Generator/Hydrator/FakePropertyHydrator.php index db18bd05d..494ed700e 100644 --- a/fixtures/Generator/Hydrator/FakePropertyHydrator.php +++ b/fixtures/Generator/Hydrator/FakePropertyHydrator.php @@ -21,7 +21,6 @@ class FakePropertyHydrator implements PropertyHydratorInterface { use NotCallableTrait; - public function hydrate(ObjectInterface $object, Property $property, GenerationContext $context): ObjectInterface { diff --git a/fixtures/Generator/Instantiator/Chainable/DummyChainableInstantiator.php b/fixtures/Generator/Instantiator/Chainable/DummyChainableInstantiator.php index a526051b9..76e72c8ed 100644 --- a/fixtures/Generator/Instantiator/Chainable/DummyChainableInstantiator.php +++ b/fixtures/Generator/Instantiator/Chainable/DummyChainableInstantiator.php @@ -22,7 +22,6 @@ protected function createInstance(FixtureInterface $fixture) { return new stdClass(); } - public function canInstantiate(FixtureInterface $fixture): bool { diff --git a/fixtures/Generator/Instantiator/Chainable/ProphecyChainableInstantiator.php b/fixtures/Generator/Instantiator/Chainable/ProphecyChainableInstantiator.php index c1c6a2d4c..eb97bffcf 100644 --- a/fixtures/Generator/Instantiator/Chainable/ProphecyChainableInstantiator.php +++ b/fixtures/Generator/Instantiator/Chainable/ProphecyChainableInstantiator.php @@ -26,13 +26,11 @@ public function __construct(AbstractChainableInstantiator $instantiator) { $this->instantiator = $instantiator; } - protected function createInstance(FixtureInterface $fixture) { return $this->instantiator->createInstance($fixture); } - public function canInstantiate(FixtureInterface $fixture): bool { diff --git a/fixtures/Generator/Instantiator/FakeChainableInstantiator.php b/fixtures/Generator/Instantiator/FakeChainableInstantiator.php index d1735d583..c1789d156 100644 --- a/fixtures/Generator/Instantiator/FakeChainableInstantiator.php +++ b/fixtures/Generator/Instantiator/FakeChainableInstantiator.php @@ -21,13 +21,11 @@ class FakeChainableInstantiator implements ChainableInstantiatorInterface { use NotCallableTrait; - public function canInstantiate(FixtureInterface $fixture): bool { $this->__call(__METHOD__, func_get_args()); } - public function instantiate(FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context): ResolvedFixtureSet { diff --git a/fixtures/Generator/Instantiator/FakeInstantiator.php b/fixtures/Generator/Instantiator/FakeInstantiator.php index 1ce35d02d..e029307b3 100644 --- a/fixtures/Generator/Instantiator/FakeInstantiator.php +++ b/fixtures/Generator/Instantiator/FakeInstantiator.php @@ -22,7 +22,6 @@ class FakeInstantiator implements InstantiatorInterface { use NotCallableTrait; - public function instantiate(FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context): ResolvedFixtureSet { diff --git a/fixtures/Generator/Resolver/FakeFixtureBagResolver.php b/fixtures/Generator/Resolver/FakeFixtureBagResolver.php index a8af21876..f3d7140e1 100644 --- a/fixtures/Generator/Resolver/FakeFixtureBagResolver.php +++ b/fixtures/Generator/Resolver/FakeFixtureBagResolver.php @@ -19,7 +19,6 @@ class FakeFixtureBagResolver implements FixtureBagResolverInterface { use NotCallableTrait; - public function resolve(FixtureBag $unresolvedFixtures): FixtureBag { diff --git a/fixtures/Generator/Resolver/FakeParameterBagResolver.php b/fixtures/Generator/Resolver/FakeParameterBagResolver.php index a10e8b85f..5f4296c64 100644 --- a/fixtures/Generator/Resolver/FakeParameterBagResolver.php +++ b/fixtures/Generator/Resolver/FakeParameterBagResolver.php @@ -19,7 +19,6 @@ class FakeParameterBagResolver implements ParameterBagResolverInterface { use NotCallableTrait; - public function resolve(ParameterBag $unresolvedParameters, ParameterBag $injectedParameters = null): ParameterBag { diff --git a/fixtures/Generator/Resolver/FakeParameterResolver.php b/fixtures/Generator/Resolver/FakeParameterResolver.php index 78acc3230..b4254f81e 100644 --- a/fixtures/Generator/Resolver/FakeParameterResolver.php +++ b/fixtures/Generator/Resolver/FakeParameterResolver.php @@ -20,7 +20,6 @@ class FakeParameterResolver implements ParameterResolverInterface { use NotCallableTrait; - public function resolve( Parameter $parameter, diff --git a/fixtures/Generator/Resolver/Parameter/Chainable/DummyChainableParameterResolverAwareResolver.php b/fixtures/Generator/Resolver/Parameter/Chainable/DummyChainableParameterResolverAwareResolver.php index b300ce08a..eda6ff450 100644 --- a/fixtures/Generator/Resolver/Parameter/Chainable/DummyChainableParameterResolverAwareResolver.php +++ b/fixtures/Generator/Resolver/Parameter/Chainable/DummyChainableParameterResolverAwareResolver.php @@ -30,19 +30,16 @@ public function __construct(ParameterResolverInterface $resolver = null) { $this->resolver = $resolver; } - public function withResolver(ParameterResolverInterface $resolver) { return new self($resolver); } - public function canResolve(Parameter $parameter): bool { $this->__call(__FUNCTION__, func_get_args()); } - public function resolve( Parameter $parameter, diff --git a/fixtures/Generator/Resolver/Parameter/Chainable/FakeChainableParameterResolver.php b/fixtures/Generator/Resolver/Parameter/Chainable/FakeChainableParameterResolver.php index b014f87de..26183162d 100644 --- a/fixtures/Generator/Resolver/Parameter/Chainable/FakeChainableParameterResolver.php +++ b/fixtures/Generator/Resolver/Parameter/Chainable/FakeChainableParameterResolver.php @@ -21,13 +21,11 @@ class FakeChainableParameterResolver implements ChainableParameterResolverInterface { use NotCallableTrait; - public function canResolve(Parameter $parameter): bool { $this->__call(__FUNCTION__, func_get_args()); } - public function resolve( Parameter $parameter, diff --git a/fixtures/Generator/Resolver/Value/FakeChainableValueResolver.php b/fixtures/Generator/Resolver/Value/FakeChainableValueResolver.php index 6ddc97fe8..78c441b76 100644 --- a/fixtures/Generator/Resolver/Value/FakeChainableValueResolver.php +++ b/fixtures/Generator/Resolver/Value/FakeChainableValueResolver.php @@ -23,13 +23,11 @@ class FakeChainableValueResolver implements ChainableValueResolverInterface { use NotCallableTrait; - public function canResolve(ValueInterface $value): bool { $this->__call(__METHOD__, func_get_args()); } - public function resolve( ValueInterface $value, diff --git a/fixtures/Generator/Resolver/Value/FakeValueResolver.php b/fixtures/Generator/Resolver/Value/FakeValueResolver.php index c49a4ec69..330957cd0 100644 --- a/fixtures/Generator/Resolver/Value/FakeValueResolver.php +++ b/fixtures/Generator/Resolver/Value/FakeValueResolver.php @@ -24,7 +24,6 @@ class FakeValueResolver implements ValueResolverInterface { use NotCallableTrait; - public function resolve( ValueInterface $value, diff --git a/fixtures/Loader/FakeDataLoader.php b/fixtures/Loader/FakeDataLoader.php index e3336d447..d35e2bea1 100644 --- a/fixtures/Loader/FakeDataLoader.php +++ b/fixtures/Loader/FakeDataLoader.php @@ -20,7 +20,6 @@ class FakeDataLoader implements DataLoaderInterface { use NotCallableTrait; - public function loadData(array $data, array $parameters = [], array $objects = []): ObjectSet { diff --git a/fixtures/Loader/IsolatedLoader.php b/fixtures/Loader/IsolatedLoader.php index 56d10e278..6e2ba11a2 100644 --- a/fixtures/Loader/IsolatedLoader.php +++ b/fixtures/Loader/IsolatedLoader.php @@ -28,13 +28,11 @@ public function loadData(array $data, array $parameters = [], array $objects = [ { return (new NativeLoader())->loadData($data, $parameters, $objects); } - public function loadFiles(array $files, array $parameters = [], array $objects = []): ObjectSet { return (new NativeLoader())->loadFiles($files, $parameters, $objects); } - public function loadFile(string $file, array $parameters = [], array $objects = []): ObjectSet { diff --git a/fixtures/Loader/NonIsolatedSymfonyLoader.php b/fixtures/Loader/NonIsolatedSymfonyLoader.php index 46fcb59ca..5376564a5 100644 --- a/fixtures/Loader/NonIsolatedSymfonyLoader.php +++ b/fixtures/Loader/NonIsolatedSymfonyLoader.php @@ -30,19 +30,16 @@ public function __construct(ContainerInterface $container) { $this->container = $container; } - public function loadData(array $data, array $parameters = [], array $objects = []): ObjectSet { return $this->container->get('nelmio_alice.data_loader')->loadData($data, $parameters, $objects); } - public function loadFiles(array $files, array $parameters = [], array $objects = []): ObjectSet { return $this->container->get('nelmio_alice.files_loader')->loadFiles($files, $parameters, $objects); } - public function loadFile(string $file, array $parameters = [], array $objects = []): ObjectSet { diff --git a/fixtures/Parser/FakeParser.php b/fixtures/Parser/FakeParser.php index 5bb03b113..95d2ed175 100644 --- a/fixtures/Parser/FakeParser.php +++ b/fixtures/Parser/FakeParser.php @@ -19,7 +19,6 @@ class FakeParser implements ParserInterface { use NotCallableTrait; - public function parse(string $file): array { diff --git a/fixtures/Symfony/PropertyAccess/FakePropertyAccessor.php b/fixtures/Symfony/PropertyAccess/FakePropertyAccessor.php index 77b0e1801..d0114d116 100644 --- a/fixtures/Symfony/PropertyAccess/FakePropertyAccessor.php +++ b/fixtures/Symfony/PropertyAccess/FakePropertyAccessor.php @@ -19,25 +19,21 @@ class FakePropertyAccessor implements PropertyAccessorInterface { use NotCallableTrait; - public function setValue(&$objectOrArray, $propertyPath, $value): void { $this->__call(__METHOD__, func_get_args()); } - public function getValue($objectOrArray, $propertyPath): void { $this->__call(__METHOD__, func_get_args()); } - public function isWritable($objectOrArray, $propertyPath): void { $this->__call(__METHOD__, func_get_args()); } - public function isReadable($objectOrArray, $propertyPath): void { diff --git a/src/Bridge/Symfony/DependencyInjection/Compiler/RegisterFakerProvidersPass.php b/src/Bridge/Symfony/DependencyInjection/Compiler/RegisterFakerProvidersPass.php index 76bbec71f..5b54a8c5c 100644 --- a/src/Bridge/Symfony/DependencyInjection/Compiler/RegisterFakerProvidersPass.php +++ b/src/Bridge/Symfony/DependencyInjection/Compiler/RegisterFakerProvidersPass.php @@ -30,7 +30,6 @@ public function __construct() { $this->taggedDefinitionsLocator = new TaggedDefinitionsLocator(); } - public function process(ContainerBuilder $container): void { diff --git a/src/Bridge/Symfony/DependencyInjection/Compiler/RegisterTagServicesPass.php b/src/Bridge/Symfony/DependencyInjection/Compiler/RegisterTagServicesPass.php index 362d63a0e..89e643ba0 100644 --- a/src/Bridge/Symfony/DependencyInjection/Compiler/RegisterTagServicesPass.php +++ b/src/Bridge/Symfony/DependencyInjection/Compiler/RegisterTagServicesPass.php @@ -42,7 +42,6 @@ public function __construct(string $registry, string $tagName) $this->tagName = $tagName; $this->taggedDefinitionsLocator = new TaggedDefinitionsLocator(); } - public function process(ContainerBuilder $container): void { diff --git a/src/Bridge/Symfony/DependencyInjection/NelmioAliceExtension.php b/src/Bridge/Symfony/DependencyInjection/NelmioAliceExtension.php index 229916dab..a18479a33 100644 --- a/src/Bridge/Symfony/DependencyInjection/NelmioAliceExtension.php +++ b/src/Bridge/Symfony/DependencyInjection/NelmioAliceExtension.php @@ -27,7 +27,6 @@ final class NelmioAliceExtension extends Extension { const SERVICES_DIR = __DIR__.'/../Resources/config'; - public function load(array $configs, ContainerBuilder $container): void { diff --git a/src/Definition/Fixture/FixtureId.php b/src/Definition/Fixture/FixtureId.php index f4f39f82c..cbfa888fe 100644 --- a/src/Definition/Fixture/FixtureId.php +++ b/src/Definition/Fixture/FixtureId.php @@ -26,7 +26,6 @@ public function __construct(string $id) { $this->id = $id; } - public function getId(): string { diff --git a/src/Definition/Fixture/SimpleFixture.php b/src/Definition/Fixture/SimpleFixture.php index 51f939a30..0e6290ea0 100644 --- a/src/Definition/Fixture/SimpleFixture.php +++ b/src/Definition/Fixture/SimpleFixture.php @@ -52,25 +52,21 @@ public function __construct(string $id, string $className, SpecificationBag $spe $this->specs = $specs; $this->valueForCurrent = $valueForCurrent; } - public function getId(): string { return $this->id; } - public function getClassName(): string { return $this->className; } - public function getSpecs(): SpecificationBag { return $this->specs; } - public function getValueForCurrent() { @@ -80,7 +76,6 @@ public function getValueForCurrent() return $this->valueForCurrent; } - public function withSpecs(SpecificationBag $specs): self { diff --git a/src/Definition/Fixture/SimpleFixtureWithFlags.php b/src/Definition/Fixture/SimpleFixtureWithFlags.php index f9cb4b300..94e12f998 100644 --- a/src/Definition/Fixture/SimpleFixtureWithFlags.php +++ b/src/Definition/Fixture/SimpleFixtureWithFlags.php @@ -43,31 +43,26 @@ public function __construct(FixtureInterface $fixture, FlagBag $flags) $this->fixture = clone $fixture; $this->flags = $flags; } - public function getId(): string { return $this->fixture->getId(); } - public function getClassName(): string { return $this->fixture->getClassName(); } - public function getSpecs(): SpecificationBag { return $this->fixture->getSpecs(); } - public function getValueForCurrent() { return $this->fixture->getValueForCurrent(); } - public function withSpecs(SpecificationBag $specs): self { @@ -76,7 +71,6 @@ public function withSpecs(SpecificationBag $specs): self return $clone; } - public function getFlags(): FlagBag { diff --git a/src/Definition/Fixture/TemplatingFixture.php b/src/Definition/Fixture/TemplatingFixture.php index b7b2c2c17..2b20762c0 100644 --- a/src/Definition/Fixture/TemplatingFixture.php +++ b/src/Definition/Fixture/TemplatingFixture.php @@ -38,31 +38,26 @@ public function __construct(FixtureWithFlagsInterface $fixture) $this->fixture = clone $fixture; $this->templating = new Templating($fixture); } - public function getId(): string { return $this->fixture->getId(); } - public function getClassName(): string { return $this->fixture->getClassName(); } - public function getSpecs(): SpecificationBag { return $this->fixture->getSpecs(); } - public function getValueForCurrent() { return $this->fixture->getValueForCurrent(); } - public function withSpecs(SpecificationBag $specs): self { @@ -89,7 +84,6 @@ public function getExtendedFixturesReferences(): array { return $this->templating->getExtendedFixtures(); } - public function getFlags(): FlagBag { diff --git a/src/Definition/Flag/OptionalFlag.php b/src/Definition/Flag/OptionalFlag.php index ccd949e19..1bcb0b7c8 100644 --- a/src/Definition/Flag/OptionalFlag.php +++ b/src/Definition/Flag/OptionalFlag.php @@ -41,7 +41,6 @@ public function getPercentage(): int { return $this->percentage; } - public function __toString(): string { diff --git a/src/Definition/FlagBag.php b/src/Definition/FlagBag.php index ad483b763..387c8ecdb 100644 --- a/src/Definition/FlagBag.php +++ b/src/Definition/FlagBag.php @@ -95,13 +95,11 @@ public function getKey(): string { return $this->key; } - public function getIterator() { return new ArrayIterator(array_values($this->flags)); } - public function count() { diff --git a/src/Definition/MethodCall/ConfiguratorMethodCall.php b/src/Definition/MethodCall/ConfiguratorMethodCall.php index 89c3ae7f2..775882002 100644 --- a/src/Definition/MethodCall/ConfiguratorMethodCall.php +++ b/src/Definition/MethodCall/ConfiguratorMethodCall.php @@ -29,25 +29,21 @@ public function __construct(MethodCallInterface $methodCall) { $this->methodCall = $methodCall; } - public function withArguments(array $arguments = null): self { return new self($this->methodCall->withArguments($arguments)); } - public function getCaller() { return $this->methodCall->getCaller(); } - public function getMethod(): string { return $this->methodCall->getMethod(); } - public function getArguments() { @@ -58,7 +54,6 @@ public function getOriginalMethodCall(): MethodCallInterface { return $this->methodCall; } - public function __toString(): string { diff --git a/src/Definition/MethodCall/MethodCallWithReference.php b/src/Definition/MethodCall/MethodCallWithReference.php index 8e086dc27..73f4dd2ce 100644 --- a/src/Definition/MethodCall/MethodCallWithReference.php +++ b/src/Definition/MethodCall/MethodCallWithReference.php @@ -58,7 +58,6 @@ public function __construct(ServiceReferenceInterface $caller, string $method, a $this->stringValue = $caller->getId().'->'.$method; } } - public function withArguments(array $arguments = null): self { @@ -67,25 +66,21 @@ public function withArguments(array $arguments = null): self return $clone; } - public function getCaller() { return clone $this->caller; } - public function getMethod(): string { return $this->method; } - public function getArguments() { return $this->arguments; } - public function __toString(): string { diff --git a/src/Definition/MethodCall/NoMethodCall.php b/src/Definition/MethodCall/NoMethodCall.php index c8395e092..c2ef8df78 100644 --- a/src/Definition/MethodCall/NoMethodCall.php +++ b/src/Definition/MethodCall/NoMethodCall.php @@ -27,25 +27,21 @@ public function withArguments(array $arguments = null): self { $this->throwException(__METHOD__); } - public function getCaller(): void { $this->throwException(__METHOD__); } - public function getMethod(): string { $this->throwException(__METHOD__); } - public function getArguments(): void { $this->throwException(__METHOD__); } - public function __toString(): string { diff --git a/src/Definition/MethodCall/OptionalMethodCall.php b/src/Definition/MethodCall/OptionalMethodCall.php index 2e55d2e34..7a40aabc7 100644 --- a/src/Definition/MethodCall/OptionalMethodCall.php +++ b/src/Definition/MethodCall/OptionalMethodCall.php @@ -36,7 +36,6 @@ public function __construct(MethodCallInterface $methodCall, OptionalFlag $flag) $this->methodCall = $methodCall; $this->flag = $flag; } - public function withArguments(array $arguments = null): self { @@ -45,19 +44,16 @@ public function withArguments(array $arguments = null): self return $clone; } - public function getCaller() { return $this->methodCall->getCaller(); } - public function getMethod(): string { return $this->methodCall->getMethod(); } - public function getArguments() { @@ -76,7 +72,6 @@ public function getOriginalMethodCall(): MethodCallInterface { return $this->methodCall; } - public function __toString(): string { diff --git a/src/Definition/MethodCall/SimpleMethodCall.php b/src/Definition/MethodCall/SimpleMethodCall.php index 6939484f4..d8a164e83 100644 --- a/src/Definition/MethodCall/SimpleMethodCall.php +++ b/src/Definition/MethodCall/SimpleMethodCall.php @@ -39,7 +39,6 @@ public function __construct(string $method, array $arguments = null) $this->method = $method; $this->arguments = $arguments; } - public function withArguments(array $arguments = null): self { @@ -48,25 +47,21 @@ public function withArguments(array $arguments = null): self return $clone; } - public function getCaller() { return null; } - public function getMethod(): string { return $this->method; } - public function getArguments() { return $this->arguments; } - public function __toString(): string { diff --git a/src/Definition/MethodCallBag.php b/src/Definition/MethodCallBag.php index 9b84ffb92..a8dbe065c 100644 --- a/src/Definition/MethodCallBag.php +++ b/src/Definition/MethodCallBag.php @@ -50,13 +50,11 @@ public function isEmpty(): bool { return [] === $this->methodCalls; } - public function getIterator() { return new ArrayIterator(array_values($this->methodCalls)); } - public function count(): int { diff --git a/src/Definition/Object/CompleteObject.php b/src/Definition/Object/CompleteObject.php index 847c99a6c..4e950d506 100644 --- a/src/Definition/Object/CompleteObject.php +++ b/src/Definition/Object/CompleteObject.php @@ -30,19 +30,16 @@ public function __construct(ObjectInterface $object) { $this->object = $object; } - public function getId(): string { return $this->object->getId(); } - public function getInstance() { return $this->object->getInstance(); } - public function withInstance(object $newInstance): void { diff --git a/src/Definition/Object/SimpleObject.php b/src/Definition/Object/SimpleObject.php index 76e5940fd..d4ec8bc74 100644 --- a/src/Definition/Object/SimpleObject.php +++ b/src/Definition/Object/SimpleObject.php @@ -35,7 +35,6 @@ public function __construct(string $id, object $instance) $this->reference = $id; $this->instance = $instance; } - public function withInstance($newInstance): self { @@ -44,13 +43,11 @@ public function withInstance($newInstance): self return $clone; } - public function getId(): string { return $this->reference; } - public function getInstance() { diff --git a/src/Definition/PropertyBag.php b/src/Definition/PropertyBag.php index a55ee916e..27dba5013 100644 --- a/src/Definition/PropertyBag.php +++ b/src/Definition/PropertyBag.php @@ -54,13 +54,11 @@ public function isEmpty(): bool { return [] === $this->properties; } - public function getIterator() { return new ArrayIterator(array_values($this->properties)); } - public function count(): int { diff --git a/src/Definition/Value/ArrayValue.php b/src/Definition/Value/ArrayValue.php index 50d174915..901809fbd 100644 --- a/src/Definition/Value/ArrayValue.php +++ b/src/Definition/Value/ArrayValue.php @@ -38,7 +38,6 @@ public function getValue(): array { return deep_clone($this->values); } - public function __toString(): string { diff --git a/src/Definition/Value/DynamicArrayValue.php b/src/Definition/Value/DynamicArrayValue.php index d86c82958..f95c67755 100644 --- a/src/Definition/Value/DynamicArrayValue.php +++ b/src/Definition/Value/DynamicArrayValue.php @@ -78,7 +78,6 @@ public function getValue(): array $this->getElement(), ]; } - public function __toString(): string { diff --git a/src/Definition/Value/EvaluatedValue.php b/src/Definition/Value/EvaluatedValue.php index 36bfd5bfc..07e8595c2 100644 --- a/src/Definition/Value/EvaluatedValue.php +++ b/src/Definition/Value/EvaluatedValue.php @@ -34,7 +34,6 @@ public function getValue(): string { return $this->expression; } - public function __toString(): string { diff --git a/src/Definition/Value/FixtureMatchReferenceValue.php b/src/Definition/Value/FixtureMatchReferenceValue.php index deaa9dc07..c119f6d36 100644 --- a/src/Definition/Value/FixtureMatchReferenceValue.php +++ b/src/Definition/Value/FixtureMatchReferenceValue.php @@ -45,13 +45,11 @@ public function match(string $value): bool { return 1 === preg_match($this->pattern, $value); } - public function getValue(): string { return $this->pattern; } - public function __toString(): string { diff --git a/src/Definition/Value/FixtureMethodCallValue.php b/src/Definition/Value/FixtureMethodCallValue.php index b32baedbe..764e46371 100644 --- a/src/Definition/Value/FixtureMethodCallValue.php +++ b/src/Definition/Value/FixtureMethodCallValue.php @@ -45,7 +45,6 @@ public function getFunctionCall(): FunctionCallValue { return $this->function; } - public function getValue(): array { @@ -54,7 +53,6 @@ public function getValue(): array $this->function, ]; } - public function __toString(): string { diff --git a/src/Definition/Value/FixturePropertyValue.php b/src/Definition/Value/FixturePropertyValue.php index 9c39848ee..9cfaa19ed 100644 --- a/src/Definition/Value/FixturePropertyValue.php +++ b/src/Definition/Value/FixturePropertyValue.php @@ -45,7 +45,6 @@ public function getProperty(): string { return $this->property; } - public function getValue(): array { @@ -54,7 +53,6 @@ public function getValue(): array $this->property, ]; } - public function __toString(): string { diff --git a/src/Definition/Value/FunctionCallValue.php b/src/Definition/Value/FunctionCallValue.php index 46e4b1951..0a6f4b6c6 100644 --- a/src/Definition/Value/FunctionCallValue.php +++ b/src/Definition/Value/FunctionCallValue.php @@ -49,7 +49,6 @@ public function getArguments(): array { return deep_clone($this->arguments); } - public function getValue() { @@ -58,7 +57,6 @@ public function getValue() $this->getArguments(), ]; } - public function __toString(): string { diff --git a/src/Definition/Value/ListValue.php b/src/Definition/Value/ListValue.php index 90053fb49..f1f19b8e8 100644 --- a/src/Definition/Value/ListValue.php +++ b/src/Definition/Value/ListValue.php @@ -42,7 +42,6 @@ public function getValue(): array { return deep_clone($this->values); } - public function __toString(): string { diff --git a/src/Definition/Value/NestedValue.php b/src/Definition/Value/NestedValue.php index b878c0f8f..4a0443991 100644 --- a/src/Definition/Value/NestedValue.php +++ b/src/Definition/Value/NestedValue.php @@ -37,7 +37,6 @@ public function getValue(): array { return $this->values; } - public function __toString(): string { diff --git a/src/Definition/Value/ParameterValue.php b/src/Definition/Value/ParameterValue.php index 8aa3cb85a..76287cb89 100644 --- a/src/Definition/Value/ParameterValue.php +++ b/src/Definition/Value/ParameterValue.php @@ -38,13 +38,11 @@ public function __construct($parameterKey) $this->parameterKey = $parameterKey; } - public function getValue() { return deep_clone($this->parameterKey); } - public function __toString(): string { diff --git a/src/Definition/Value/ResolvedFunctionCallValue.php b/src/Definition/Value/ResolvedFunctionCallValue.php index 6fd6645ca..2b7cb1cd1 100644 --- a/src/Definition/Value/ResolvedFunctionCallValue.php +++ b/src/Definition/Value/ResolvedFunctionCallValue.php @@ -48,7 +48,6 @@ public function getArguments(): array { return $this->arguments; } - public function getValue() { @@ -57,7 +56,6 @@ public function getValue() $this->getArguments(), ]; } - public function __toString(): string { diff --git a/src/Definition/Value/UniqueValue.php b/src/Definition/Value/UniqueValue.php index 3bc06c754..5ac75ece0 100644 --- a/src/Definition/Value/UniqueValue.php +++ b/src/Definition/Value/UniqueValue.php @@ -50,13 +50,11 @@ public function getId(): string { return $this->id; } - public function getValue() { return deep_clone($this->value); } - public function __toString(): string { diff --git a/src/Definition/Value/ValueForCurrentValue.php b/src/Definition/Value/ValueForCurrentValue.php index 4ea5425be..3b2a82d1e 100644 --- a/src/Definition/Value/ValueForCurrentValue.php +++ b/src/Definition/Value/ValueForCurrentValue.php @@ -24,7 +24,6 @@ public function getValue(): string { return 'current'; } - public function __toString(): string { diff --git a/src/Definition/Value/VariableValue.php b/src/Definition/Value/VariableValue.php index 27790d370..7bc3b8fc8 100644 --- a/src/Definition/Value/VariableValue.php +++ b/src/Definition/Value/VariableValue.php @@ -32,13 +32,11 @@ public function __construct(string $variable) { $this->variable = $variable; } - public function getValue(): string { return $this->variable; } - public function __toString(): string { diff --git a/src/FixtureBag.php b/src/FixtureBag.php index 2fd0906e8..16f43e3da 100644 --- a/src/FixtureBag.php +++ b/src/FixtureBag.php @@ -84,7 +84,6 @@ public function get(string $id): FixtureInterface throw FixtureNotFoundExceptionFactory::create($id); } - public function getIterator() { diff --git a/src/FixtureBuilder/Denormalizer/Fixture/Chainable/NullListNameDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/Chainable/NullListNameDenormalizer.php index b5a809a5b..e0ec4ffa9 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/Chainable/NullListNameDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/Chainable/NullListNameDenormalizer.php @@ -24,7 +24,6 @@ final class NullListNameDenormalizer implements CollectionDenormalizer /** @private */ const REGEX = '/\{(?[\p{L}\d\._\/]+(?:,\s[^,\s]+)*)\}/u'; - public function canDenormalize(string $reference, array &$matches = []): bool { @@ -34,7 +33,6 @@ public function canDenormalize(string $reference, array &$matches = []): bool return false; } - public function denormalize( FixtureBag $builtFixtures, diff --git a/src/FixtureBuilder/Denormalizer/Fixture/Chainable/SimpleDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/Chainable/SimpleDenormalizer.php index f95a72e4b..056c95286 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/Chainable/SimpleDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/Chainable/SimpleDenormalizer.php @@ -48,18 +48,15 @@ public function __construct(SpecificationsDenormalizerInterface $specsDenormaliz $this->flagParser = $parser; } - public function withFlagParser(FlagParserInterface $parser): self { return new self($this->specsDenormalizer, $parser); } - public function canDenormalize(string $reference): bool { return false === strpos($reference, '{'); } - public function denormalize(FixtureBag $builtFixtures, string $className, string $unparsedFixtureId, array $specs, FlagBag $flags): FixtureBag { diff --git a/src/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistry.php b/src/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistry.php index 11c384aea..03afbe043 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistry.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistry.php @@ -51,7 +51,6 @@ public function __construct(FlagParserInterface $flagParser, array $denormalizer $this->denormalizers[] = $denormalizer; } } - public function denormalize(FixtureBag $builtFixtures, string $className, string $fixtureId, array $specs, FlagBag $flags): FixtureBag { diff --git a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Arguments/SimpleArgumentsDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Arguments/SimpleArgumentsDenormalizer.php index 2b8433a21..cce447d3e 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Arguments/SimpleArgumentsDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Arguments/SimpleArgumentsDenormalizer.php @@ -32,7 +32,6 @@ public function __construct(ValueDenormalizerInterface $valueDenormalizer) { $this->valueDenormalizer = $valueDenormalizer; } - public function denormalize( FixtureInterface $scope, diff --git a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/MethodFlagHandler/ConfiguratorFlagHandler.php b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/MethodFlagHandler/ConfiguratorFlagHandler.php index 157272e93..bf16d71bc 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/MethodFlagHandler/ConfiguratorFlagHandler.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/MethodFlagHandler/ConfiguratorFlagHandler.php @@ -23,7 +23,6 @@ final class ConfiguratorFlagHandler implements MethodFlagHandler { use IsAServiceTrait; - public function handleMethodFlags(MethodCallInterface $methodCall, FlagInterface $flag): MethodCallInterface { diff --git a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/MethodFlagHandler/OptionalFlagHandler.php b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/MethodFlagHandler/OptionalFlagHandler.php index 0b4ec346a..fb714964a 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/MethodFlagHandler/OptionalFlagHandler.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/MethodFlagHandler/OptionalFlagHandler.php @@ -23,7 +23,6 @@ final class OptionalFlagHandler implements MethodFlagHandler { use IsAServiceTrait; - public function handleMethodFlags(MethodCallInterface $methodCall, FlagInterface $flag): MethodCallInterface { diff --git a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/FactoryDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/FactoryDenormalizer.php index 410e1ef3f..9b03dd780 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/FactoryDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/FactoryDenormalizer.php @@ -34,7 +34,6 @@ public function __construct(CallsDenormalizerInterface $callsDenormalizer) { $this->callsDenormalizer = $callsDenormalizer; } - public function denormalize( FixtureInterface $scope, diff --git a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/LegacyConstructorDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/LegacyConstructorDenormalizer.php index 06107f387..9062d8d29 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/LegacyConstructorDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Constructor/LegacyConstructorDenormalizer.php @@ -41,7 +41,6 @@ public function __construct( $this->constructorDenormalizer = $constructorDenormalizer; $this->factoryDenormalizer = $factoryDenormalizer; } - public function denormalize( FixtureInterface $scope, diff --git a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Property/SimplePropertyDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Property/SimplePropertyDenormalizer.php index 0dace716d..eb043d0f8 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Property/SimplePropertyDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Property/SimplePropertyDenormalizer.php @@ -33,7 +33,6 @@ public function __construct(ValueDenormalizerInterface $valueDenormalizer) { $this->valueDenormalizer = $valueDenormalizer; } - public function denormalize(FixtureInterface $scope, string $name, $value, FlagBag $flags): Property { diff --git a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/SimpleSpecificationsDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/SimpleSpecificationsDenormalizer.php index e50dd6d65..c009e8867 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/SimpleSpecificationsDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/SimpleSpecificationsDenormalizer.php @@ -52,7 +52,6 @@ public function __construct( $this->propertyDenormalizer = $propertyDenormalizer; $this->callsDenormalizer = $callsDenormalizer; } - public function denormalize(FixtureInterface $scope, FlagParserInterface $parser, array $unparsedSpecs): SpecificationBag { diff --git a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/SimpleValueDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/SimpleValueDenormalizer.php index dce340633..65758c268 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/SimpleValueDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/SimpleValueDenormalizer.php @@ -36,7 +36,6 @@ public function __construct(ParserInterface $parser) { $this->parser = $parser; } - public function denormalize(FixtureInterface $scope, FlagBag $flags = null, $value) { diff --git a/src/FixtureBuilder/Denormalizer/Fixture/TolerantFixtureDenormalizer.php b/src/FixtureBuilder/Denormalizer/Fixture/TolerantFixtureDenormalizer.php index b53a34356..a5a757047 100644 --- a/src/FixtureBuilder/Denormalizer/Fixture/TolerantFixtureDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/Fixture/TolerantFixtureDenormalizer.php @@ -35,7 +35,6 @@ public function __construct(FixtureDenormalizerInterface $denormalizer) { $this->denormalizer = $denormalizer; } - public function denormalize(FixtureBag $builtFixtures, string $className, string $fixtureId, array $specs, FlagBag $flags): FixtureBag { diff --git a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/ConfiguratorFlagParser.php b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/ConfiguratorFlagParser.php index 72cbc596a..5fa3a73ad 100644 --- a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/ConfiguratorFlagParser.php +++ b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/ConfiguratorFlagParser.php @@ -21,13 +21,11 @@ final class ConfiguratorFlagParser implements ChainableFlagParserInterface { use IsAServiceTrait; - public function canParse(string $element): bool { return 'configurator' === $element; } - public function parse(string $element): FlagBag { diff --git a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/ExtendFlagParser.php b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/ExtendFlagParser.php index 240a9a423..5680699fc 100644 --- a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/ExtendFlagParser.php +++ b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/ExtendFlagParser.php @@ -25,13 +25,11 @@ final class ExtendFlagParser implements ChainableFlagParserInterface /** @interval */ const REGEX = '/^extends (?.+)$/'; - public function canParse(string $element, array &$matches = []): bool { return 1 === preg_match(self::REGEX, $element, $matches); } - public function parse(string $element): FlagBag { diff --git a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/OptionalFlagParser.php b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/OptionalFlagParser.php index 83291fbf5..c0ce7081a 100644 --- a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/OptionalFlagParser.php +++ b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/OptionalFlagParser.php @@ -24,13 +24,11 @@ final class OptionalFlagParser implements ChainableFlagParserInterface /** @interval */ const REGEX = '/^(?\d+)\%\?$/'; - public function canParse(string $element, array &$matches = []): bool { return 1 === preg_match(self::REGEX, $element, $matches); } - public function parse(string $element): FlagBag { diff --git a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/TemplateFlagParser.php b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/TemplateFlagParser.php index 2ff9cbdc0..2e80be8f2 100644 --- a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/TemplateFlagParser.php +++ b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/TemplateFlagParser.php @@ -21,13 +21,11 @@ final class TemplateFlagParser implements ChainableFlagParserInterface { use IsAServiceTrait; - public function canParse(string $element): bool { return 'template' === $element; } - public function parse(string $element): FlagBag { diff --git a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/UniqueFlagParser.php b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/UniqueFlagParser.php index 946ae9859..f858d862d 100644 --- a/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/UniqueFlagParser.php +++ b/src/FixtureBuilder/Denormalizer/FlagParser/Chainable/UniqueFlagParser.php @@ -21,13 +21,11 @@ final class UniqueFlagParser implements ChainableFlagParserInterface { use IsAServiceTrait; - public function canParse(string $element): bool { return 'unique' === $element; } - public function parse(string $element): FlagBag { diff --git a/src/FixtureBuilder/Denormalizer/FlagParser/ElementFlagParser.php b/src/FixtureBuilder/Denormalizer/FlagParser/ElementFlagParser.php index 465872207..4516e1bf4 100644 --- a/src/FixtureBuilder/Denormalizer/FlagParser/ElementFlagParser.php +++ b/src/FixtureBuilder/Denormalizer/FlagParser/ElementFlagParser.php @@ -36,7 +36,6 @@ public function __construct(FlagParserInterface $parser) { $this->parser = $parser; } - public function parse(string $element): FlagBag { diff --git a/src/FixtureBuilder/Denormalizer/SimpleDenormalizer.php b/src/FixtureBuilder/Denormalizer/SimpleDenormalizer.php index a9080f40a..872019970 100644 --- a/src/FixtureBuilder/Denormalizer/SimpleDenormalizer.php +++ b/src/FixtureBuilder/Denormalizer/SimpleDenormalizer.php @@ -36,7 +36,6 @@ public function __construct(ParameterBagDenormalizerInterface $parametersDenorma $this->parametersDenormalizer = $parametersDenormalizer; $this->fixturesDenormalizer = $fixturesDenormalizer; } - public function denormalize(array $data): BareFixtureSet { diff --git a/src/FixtureBuilder/ExpressionLanguage/Lexer/EmptyValueLexer.php b/src/FixtureBuilder/ExpressionLanguage/Lexer/EmptyValueLexer.php index 30812e632..1b80c82b6 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Lexer/EmptyValueLexer.php +++ b/src/FixtureBuilder/ExpressionLanguage/Lexer/EmptyValueLexer.php @@ -31,7 +31,6 @@ public function __construct(LexerInterface $decoratedLexer) { $this->lexer = $decoratedLexer; } - public function lex(string $value): array { diff --git a/src/FixtureBuilder/ExpressionLanguage/Lexer/StringThenReferenceLexer.php b/src/FixtureBuilder/ExpressionLanguage/Lexer/StringThenReferenceLexer.php index d88d6990c..e17be9e10 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Lexer/StringThenReferenceLexer.php +++ b/src/FixtureBuilder/ExpressionLanguage/Lexer/StringThenReferenceLexer.php @@ -34,7 +34,6 @@ public function __construct(LexerInterface $decoratedLexer) { $this->decoratedLexer = $decoratedLexer; } - public function lex(string $value): array { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/SimpleParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/SimpleParser.php index 09a274c51..48a6b5e74 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/SimpleParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/SimpleParser.php @@ -49,7 +49,6 @@ public function __construct(LexerInterface $lexer, TokenParserInterface $tokenPa : $tokenParser ; } - public function parse(string $value) { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/AbstractChainableParserAwareParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/AbstractChainableParserAwareParser.php index e5a22cc95..2a4b6e9bb 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/AbstractChainableParserAwareParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/AbstractChainableParserAwareParser.php @@ -38,7 +38,6 @@ public function __construct(ParserInterface $parser = null) { $this->parser = $parser; } - public function withParser(ParserInterface $parser) { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/DynamicArrayTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/DynamicArrayTokenParser.php index 988842828..d9712323a 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/DynamicArrayTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/DynamicArrayTokenParser.php @@ -26,7 +26,6 @@ final class DynamicArrayTokenParser extends AbstractChainableParserAwareParser { /** @private */ const REGEX = '/^(?\d+|<.*>)x (?.*)/'; - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/EscapedValueTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/EscapedValueTokenParser.php index 926423753..ad50559e6 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/EscapedValueTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/EscapedValueTokenParser.php @@ -36,7 +36,6 @@ public function __construct() { $this->tokenizer = new FunctionTokenizer(); } - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureListReferenceTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureListReferenceTokenParser.php index 1a088e39c..fd4458c61 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureListReferenceTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureListReferenceTokenParser.php @@ -42,7 +42,6 @@ public function __construct() { $this->token = uniqid(__CLASS__); } - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureRangeReferenceTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureRangeReferenceTokenParser.php index c07321044..82c7b48bc 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureRangeReferenceTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureRangeReferenceTokenParser.php @@ -43,7 +43,6 @@ public function __construct() { $this->token = uniqid(__CLASS__); } - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/IdentityTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/IdentityTokenParser.php index a65402719..f752a5c83 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/IdentityTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/IdentityTokenParser.php @@ -48,13 +48,11 @@ public function __construct(ChainableTokenParserInterface $decoratedTokenParser, $this->decoratedTokenParser = $decoratedTokenParser; $this->tokenizer = new FunctionTokenizer(); } - public function withParser(ParserInterface $parser): self { return new static($this->decoratedTokenParser, $parser); } - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/OptionalTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/OptionalTokenParser.php index fedc26cbb..9eb20bf49 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/OptionalTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/OptionalTokenParser.php @@ -26,7 +26,6 @@ final class OptionalTokenParser extends AbstractChainableParserAwareParser { /** @private */ const REGEX = '/^(?\d+|\d*\.\d+|<.+>)%\? \ *?(?[^:]+)(?:\: +(?[^\ ]+))?/'; - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/SimpleReferenceTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/SimpleReferenceTokenParser.php index f17320cd0..083bd86da 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/SimpleReferenceTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/SimpleReferenceTokenParser.php @@ -27,7 +27,6 @@ final class SimpleReferenceTokenParser implements ChainableTokenParserInterface { use IsAServiceTrait; - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/StringTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/StringTokenParser.php index f7e5239b9..0e0e54f84 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/StringTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/StringTokenParser.php @@ -34,13 +34,11 @@ public function __construct(ArgumentEscaper $argumentEscaper) { $this->argumentEscaper = $argumentEscaper; } - public function canParse(Token $token): bool { return $token->getType() === TokenType::STRING_TYPE; } - public function parse(Token $token) { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/TolerantFunctionTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/TolerantFunctionTokenParser.php index 8db4572ae..652a3a71f 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/TolerantFunctionTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/TolerantFunctionTokenParser.php @@ -39,7 +39,6 @@ final class TolerantFunctionTokenParser extends AbstractChainableParserAwarePars * @var ChainableTokenParserInterface */ private $functionTokenParser; - public function __construct(ChainableTokenParserInterface $functionTokenParser, ParserInterface $parser = null) { @@ -51,13 +50,11 @@ public function __construct(ChainableTokenParserInterface $functionTokenParser, $this->functionTokenParser = $functionTokenParser; } - public function withParser(ParserInterface $parser): self { return new self($this->functionTokenParser, $parser); } - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/VariableReferenceTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/VariableReferenceTokenParser.php index 47264f187..913a22ad8 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/VariableReferenceTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/VariableReferenceTokenParser.php @@ -31,7 +31,6 @@ final class VariableReferenceTokenParser implements ChainableTokenParserInterface { use IsAServiceTrait; - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/VariableTokenParser.php b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/VariableTokenParser.php index fff46735a..869a8b3fe 100644 --- a/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/VariableTokenParser.php +++ b/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/VariableTokenParser.php @@ -30,7 +30,6 @@ final class VariableTokenParser implements ChainableTokenParserInterface { use IsAServiceTrait; - public function canParse(Token $token): bool { diff --git a/src/FixtureBuilder/SimpleBuilder.php b/src/FixtureBuilder/SimpleBuilder.php index 45b5a300e..3838e30e1 100644 --- a/src/FixtureBuilder/SimpleBuilder.php +++ b/src/FixtureBuilder/SimpleBuilder.php @@ -32,7 +32,6 @@ public function __construct(DenormalizerInterface $denormalizer) { $this->denormalizer = $denormalizer; } - public function build(array $data, array $parameters = [], array $objects = []): FixtureSet { diff --git a/src/Generator/Caller/Chainable/ConfiguratorMethodCallProcessor.php b/src/Generator/Caller/Chainable/ConfiguratorMethodCallProcessor.php index c2520f340..b776a6dd7 100644 --- a/src/Generator/Caller/Chainable/ConfiguratorMethodCallProcessor.php +++ b/src/Generator/Caller/Chainable/ConfiguratorMethodCallProcessor.php @@ -37,19 +37,16 @@ public function __construct(CallProcessorInterface $processor = null) { $this->processor = $processor; } - public function withProcessor(CallProcessorInterface $processor): self { return new self($processor); } - public function canProcess(MethodCallInterface $methodCall): bool { return $methodCall instanceof ConfiguratorMethodCall; } - public function process( ObjectInterface $object, diff --git a/src/Generator/Caller/Chainable/MethodCallWithReferenceProcessor.php b/src/Generator/Caller/Chainable/MethodCallWithReferenceProcessor.php index b45fd7d6c..8ebe5d594 100644 --- a/src/Generator/Caller/Chainable/MethodCallWithReferenceProcessor.php +++ b/src/Generator/Caller/Chainable/MethodCallWithReferenceProcessor.php @@ -26,7 +26,6 @@ final class MethodCallWithReferenceProcessor implements ChainableCallProcessorInterface { use IsAServiceTrait; - public function canProcess(MethodCallInterface $methodCall): bool { diff --git a/src/Generator/Caller/Chainable/OptionalMethodCallProcessor.php b/src/Generator/Caller/Chainable/OptionalMethodCallProcessor.php index c22161697..a9104bd90 100644 --- a/src/Generator/Caller/Chainable/OptionalMethodCallProcessor.php +++ b/src/Generator/Caller/Chainable/OptionalMethodCallProcessor.php @@ -37,13 +37,11 @@ public function __construct(CallProcessorInterface $processor = null) { $this->processor = $processor; } - public function withProcessor(CallProcessorInterface $processor): self { return new self($processor); } - public function canProcess(MethodCallInterface $methodCall): bool { diff --git a/src/Generator/Caller/Chainable/SimpleMethodCallProcessor.php b/src/Generator/Caller/Chainable/SimpleMethodCallProcessor.php index db375df6d..0ad7447f9 100644 --- a/src/Generator/Caller/Chainable/SimpleMethodCallProcessor.php +++ b/src/Generator/Caller/Chainable/SimpleMethodCallProcessor.php @@ -24,13 +24,11 @@ final class SimpleMethodCallProcessor implements ChainableCallProcessorInterface { use IsAServiceTrait; - public function canProcess(MethodCallInterface $methodCall): bool { return $methodCall instanceof SimpleMethodCall; } - public function process( ObjectInterface $object, diff --git a/src/Generator/DoublePassGenerator.php b/src/Generator/DoublePassGenerator.php index a8a618aad..6a1cd0d75 100644 --- a/src/Generator/DoublePassGenerator.php +++ b/src/Generator/DoublePassGenerator.php @@ -37,7 +37,6 @@ public function __construct(FixtureSetResolverInterface $resolver, ObjectGenerat $this->resolver = $resolver; $this->generator = $generator; } - public function generate(FixtureSet $fixtureSet): ObjectSet { diff --git a/src/Generator/Instantiator/Chainable/NoMethodCallInstantiator.php b/src/Generator/Instantiator/Chainable/NoMethodCallInstantiator.php index 15b3c868e..7f74bffab 100644 --- a/src/Generator/Instantiator/Chainable/NoMethodCallInstantiator.php +++ b/src/Generator/Instantiator/Chainable/NoMethodCallInstantiator.php @@ -25,7 +25,6 @@ public function canInstantiate(FixtureInterface $fixture): bool { return $fixture->getSpecs()->getConstructor() instanceof NoMethodCall; } - protected function createInstance(FixtureInterface $fixture) { diff --git a/src/Generator/Instantiator/Chainable/NullConstructorInstantiator.php b/src/Generator/Instantiator/Chainable/NullConstructorInstantiator.php index d46b1fb1f..420c1df7b 100644 --- a/src/Generator/Instantiator/Chainable/NullConstructorInstantiator.php +++ b/src/Generator/Instantiator/Chainable/NullConstructorInstantiator.php @@ -24,7 +24,6 @@ public function canInstantiate(FixtureInterface $fixture): bool { return null === $fixture->getSpecs()->getConstructor(); } - protected function createInstance(FixtureInterface $fixture) { diff --git a/src/Generator/Instantiator/ExistingInstanceInstantiator.php b/src/Generator/Instantiator/ExistingInstanceInstantiator.php index b75d61d60..4d6e6b31c 100644 --- a/src/Generator/Instantiator/ExistingInstanceInstantiator.php +++ b/src/Generator/Instantiator/ExistingInstanceInstantiator.php @@ -42,13 +42,11 @@ public function __construct(InstantiatorInterface $decoratedInstantiator, ValueR $this->instantiator = $decoratedInstantiator; } - public function withValueResolver(ValueResolverInterface $resolver): self { return new self($this->instantiator, $resolver); } - public function instantiate( FixtureInterface $fixture, diff --git a/src/Generator/ObjectGenerator/SimpleObjectGenerator.php b/src/Generator/ObjectGenerator/SimpleObjectGenerator.php index 48795ba16..7b361e1c4 100644 --- a/src/Generator/ObjectGenerator/SimpleObjectGenerator.php +++ b/src/Generator/ObjectGenerator/SimpleObjectGenerator.php @@ -77,7 +77,6 @@ public function __construct( $this->hydrator = $hydrator; $this->caller = $caller; } - public function generate( FixtureInterface $fixture, diff --git a/src/Generator/Resolver/Fixture/TemplateFixtureBagResolver.php b/src/Generator/Resolver/Fixture/TemplateFixtureBagResolver.php index 8048345b8..46f6affa4 100644 --- a/src/Generator/Resolver/Fixture/TemplateFixtureBagResolver.php +++ b/src/Generator/Resolver/Fixture/TemplateFixtureBagResolver.php @@ -36,7 +36,6 @@ public function __construct() { $this->resolver = new TemplateFixtureResolver(); } - public function resolve(FixtureBag $unresolvedFixtures): FixtureBag { diff --git a/src/Generator/Resolver/FixtureSet/FakeFixtureSetResolver.php b/src/Generator/Resolver/FixtureSet/FakeFixtureSetResolver.php index fb6f308b9..53756ff01 100644 --- a/src/Generator/Resolver/FixtureSet/FakeFixtureSetResolver.php +++ b/src/Generator/Resolver/FixtureSet/FakeFixtureSetResolver.php @@ -21,7 +21,6 @@ class FakeFixtureSetResolver implements FixtureSetResolverInterface { use NotCallableTrait; - public function resolve(FixtureSet $fixtureSet): ResolvedFixtureSet { diff --git a/src/Generator/Resolver/FixtureSet/RemoveConflictingObjectsResolver.php b/src/Generator/Resolver/FixtureSet/RemoveConflictingObjectsResolver.php index 3b64c1b65..ef5eb6907 100644 --- a/src/Generator/Resolver/FixtureSet/RemoveConflictingObjectsResolver.php +++ b/src/Generator/Resolver/FixtureSet/RemoveConflictingObjectsResolver.php @@ -36,7 +36,6 @@ public function __construct(FixtureSetResolverInterface $decoratedResolver) { $this->resolver = $decoratedResolver; } - public function resolve(FixtureSet $unresolvedFixtureSet): ResolvedFixtureSet { diff --git a/src/Generator/Resolver/FixtureSet/SimpleFixtureSetResolver.php b/src/Generator/Resolver/FixtureSet/SimpleFixtureSetResolver.php index 4809be9c0..fdb1dc9e9 100644 --- a/src/Generator/Resolver/FixtureSet/SimpleFixtureSetResolver.php +++ b/src/Generator/Resolver/FixtureSet/SimpleFixtureSetResolver.php @@ -39,7 +39,6 @@ public function __construct(ParameterBagResolverInterface $parameterResolver, Fi $this->parameterResolver = $parameterResolver; $this->fixtureResolver = $fixtureResolver; } - public function resolve(FixtureSet $fixtureSet): ResolvedFixtureSet { diff --git a/src/Generator/Resolver/Parameter/Chainable/ArrayParameterResolver.php b/src/Generator/Resolver/Parameter/Chainable/ArrayParameterResolver.php index 7789d5d7e..3028957b8 100644 --- a/src/Generator/Resolver/Parameter/Chainable/ArrayParameterResolver.php +++ b/src/Generator/Resolver/Parameter/Chainable/ArrayParameterResolver.php @@ -38,19 +38,16 @@ public function __construct(ParameterResolverInterface $resolver = null) { $this->resolver = $resolver; } - public function withResolver(ParameterResolverInterface $resolver): self { return new self($resolver); } - public function canResolve(Parameter $parameter): bool { return is_array($parameter->getValue()); } - public function resolve( Parameter $unresolvedArrayParameter, diff --git a/src/Generator/Resolver/Parameter/Chainable/RecursiveParameterResolver.php b/src/Generator/Resolver/Parameter/Chainable/RecursiveParameterResolver.php index f2da177bb..838557830 100644 --- a/src/Generator/Resolver/Parameter/Chainable/RecursiveParameterResolver.php +++ b/src/Generator/Resolver/Parameter/Chainable/RecursiveParameterResolver.php @@ -51,7 +51,6 @@ public function __construct(ChainableParameterResolverInterface $resolver, int $ $this->limit = $limit; } - public function withResolver(ParameterResolverInterface $resolver) { @@ -62,7 +61,6 @@ public function withResolver(ParameterResolverInterface $resolver) return new self($decoratedResolver); } - public function canResolve(Parameter $parameter): bool { diff --git a/src/Generator/Resolver/Parameter/Chainable/StaticParameterResolver.php b/src/Generator/Resolver/Parameter/Chainable/StaticParameterResolver.php index 9639c5bce..88ae01b25 100644 --- a/src/Generator/Resolver/Parameter/Chainable/StaticParameterResolver.php +++ b/src/Generator/Resolver/Parameter/Chainable/StaticParameterResolver.php @@ -24,7 +24,6 @@ final class StaticParameterResolver implements ChainableParameterResolverInterface { use IsAServiceTrait; - public function canResolve(Parameter $parameter): bool { diff --git a/src/Generator/Resolver/Parameter/ParameterResolverRegistry.php b/src/Generator/Resolver/Parameter/ParameterResolverRegistry.php index 37222f602..059caaf20 100644 --- a/src/Generator/Resolver/Parameter/ParameterResolverRegistry.php +++ b/src/Generator/Resolver/Parameter/ParameterResolverRegistry.php @@ -49,7 +49,6 @@ public function __construct(array $resolvers) $this->resolvers = $resolvers; } - public function resolve( Parameter $parameter, diff --git a/src/Generator/Resolver/Parameter/RemoveConflictingParametersParameterBagResolver.php b/src/Generator/Resolver/Parameter/RemoveConflictingParametersParameterBagResolver.php index 566c021cd..c94292e33 100644 --- a/src/Generator/Resolver/Parameter/RemoveConflictingParametersParameterBagResolver.php +++ b/src/Generator/Resolver/Parameter/RemoveConflictingParametersParameterBagResolver.php @@ -33,7 +33,6 @@ public function __construct(ParameterBagResolverInterface $decoratedResolver) { $this->resolver = $decoratedResolver; } - public function resolve( ParameterBag $unresolvedParameters, diff --git a/src/Generator/Resolver/Value/Chainable/ArrayValueResolver.php b/src/Generator/Resolver/Value/Chainable/ArrayValueResolver.php index 25976adc4..583a3feb2 100644 --- a/src/Generator/Resolver/Value/Chainable/ArrayValueResolver.php +++ b/src/Generator/Resolver/Value/Chainable/ArrayValueResolver.php @@ -38,13 +38,11 @@ public function __construct(ValueResolverInterface $resolver = null) { $this->resolver = $resolver; } - public function withValueResolver(ValueResolverInterface $resolver): self { return new self($resolver); } - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/FixtureReferenceResolver.php b/src/Generator/Resolver/Value/Chainable/FixtureReferenceResolver.php index 0d1210b32..e672afb24 100644 --- a/src/Generator/Resolver/Value/Chainable/FixtureReferenceResolver.php +++ b/src/Generator/Resolver/Value/Chainable/FixtureReferenceResolver.php @@ -50,13 +50,11 @@ public function __construct(ObjectGeneratorInterface $generator = null) { $this->generator = $generator; } - public function withObjectGenerator(ObjectGeneratorInterface $generator): self { return new self($generator); } - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/FunctionCallArgumentResolver.php b/src/Generator/Resolver/Value/Chainable/FunctionCallArgumentResolver.php index 27cc00990..09f05c10b 100644 --- a/src/Generator/Resolver/Value/Chainable/FunctionCallArgumentResolver.php +++ b/src/Generator/Resolver/Value/Chainable/FunctionCallArgumentResolver.php @@ -48,13 +48,11 @@ public function __construct(ValueResolverInterface $decoratedResolver, ValueReso $this->resolver = $decoratedResolver; $this->argumentResolver = $argumentResolver; } - public function withValueResolver(ValueResolverInterface $argumentsResolver): self { return new self($this->resolver, $argumentsResolver); } - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/ListValueResolver.php b/src/Generator/Resolver/Value/Chainable/ListValueResolver.php index 05b0733f1..32566f39e 100644 --- a/src/Generator/Resolver/Value/Chainable/ListValueResolver.php +++ b/src/Generator/Resolver/Value/Chainable/ListValueResolver.php @@ -39,13 +39,11 @@ public function __construct(ValueResolverInterface $resolver = null) { $this->resolver = $resolver; } - public function withValueResolver(ValueResolverInterface $resolver): self { return new self($resolver); } - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/OptionalValueResolver.php b/src/Generator/Resolver/Value/Chainable/OptionalValueResolver.php index 0f9ea554d..63dad7230 100644 --- a/src/Generator/Resolver/Value/Chainable/OptionalValueResolver.php +++ b/src/Generator/Resolver/Value/Chainable/OptionalValueResolver.php @@ -48,13 +48,11 @@ public function __construct(ValueResolverInterface $resolver = null, FakerGenera $this->resolver = $resolver; $this->faker = $faker; } - public function withValueResolver(ValueResolverInterface $resolver): self { return new self($resolver, $this->faker); } - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/ParameterValueResolver.php b/src/Generator/Resolver/Value/Chainable/ParameterValueResolver.php index 74a4e627b..24c30c8bc 100644 --- a/src/Generator/Resolver/Value/Chainable/ParameterValueResolver.php +++ b/src/Generator/Resolver/Value/Chainable/ParameterValueResolver.php @@ -27,7 +27,6 @@ final class ParameterValueResolver implements ChainableValueResolverInterface { use IsAServiceTrait; - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/PhpFunctionCallValueResolver.php b/src/Generator/Resolver/Value/Chainable/PhpFunctionCallValueResolver.php index 2019067a3..8ad67bf6f 100644 --- a/src/Generator/Resolver/Value/Chainable/PhpFunctionCallValueResolver.php +++ b/src/Generator/Resolver/Value/Chainable/PhpFunctionCallValueResolver.php @@ -46,7 +46,6 @@ public function __construct(array $functionBlacklist, ValueResolverInterface $de $this->functionBlacklist = array_flip($functionBlacklist); $this->resolver = $decoratedResolver; } - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/SelfFixtureReferenceResolver.php b/src/Generator/Resolver/Value/Chainable/SelfFixtureReferenceResolver.php index 4f1a28b5f..46b8e833f 100644 --- a/src/Generator/Resolver/Value/Chainable/SelfFixtureReferenceResolver.php +++ b/src/Generator/Resolver/Value/Chainable/SelfFixtureReferenceResolver.php @@ -40,7 +40,6 @@ public function __construct(ChainableValueResolverInterface $decoratedResolver) { $this->decoratedResolver = $decoratedResolver; } - public function withObjectGenerator(ObjectGeneratorInterface $generator): self { @@ -51,7 +50,6 @@ public function withObjectGenerator(ObjectGeneratorInterface $generator): self return new self($decoratedResolver); } - public function withValueResolver(ValueResolverInterface $resolver): self { @@ -62,7 +60,6 @@ public function withValueResolver(ValueResolverInterface $resolver): self return new self($decoratedResolver); } - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/ValueForCurrentValueResolver.php b/src/Generator/Resolver/Value/Chainable/ValueForCurrentValueResolver.php index fc03166e3..a68b4261f 100644 --- a/src/Generator/Resolver/Value/Chainable/ValueForCurrentValueResolver.php +++ b/src/Generator/Resolver/Value/Chainable/ValueForCurrentValueResolver.php @@ -27,7 +27,6 @@ final class ValueForCurrentValueResolver implements ChainableValueResolverInterface { use IsAServiceTrait; - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/Chainable/VariableValueResolver.php b/src/Generator/Resolver/Value/Chainable/VariableValueResolver.php index c0123a586..73676aa50 100644 --- a/src/Generator/Resolver/Value/Chainable/VariableValueResolver.php +++ b/src/Generator/Resolver/Value/Chainable/VariableValueResolver.php @@ -27,7 +27,6 @@ final class VariableValueResolver implements ChainableValueResolverInterface { use IsAServiceTrait; - public function canResolve(ValueInterface $value): bool { diff --git a/src/Generator/Resolver/Value/ValueResolverRegistry.php b/src/Generator/Resolver/Value/ValueResolverRegistry.php index 57537d7eb..3aac94f8c 100644 --- a/src/Generator/Resolver/Value/ValueResolverRegistry.php +++ b/src/Generator/Resolver/Value/ValueResolverRegistry.php @@ -57,7 +57,6 @@ function (ObjectGeneratorInterface $generator = null, ChainableValueResolverInte } )($generator, ...$resolvers); } - public function withObjectGenerator(ObjectGeneratorInterface $generator) { diff --git a/src/Loader/SimpleDataLoader.php b/src/Loader/SimpleDataLoader.php index 9d1d0af95..bb5901626 100644 --- a/src/Loader/SimpleDataLoader.php +++ b/src/Loader/SimpleDataLoader.php @@ -38,7 +38,6 @@ public function __construct(FixtureBuilderInterface $fixtureBuilder, GeneratorIn $this->builder = $fixtureBuilder; $this->generator = $generator; } - public function loadData(array $data, array $parameters = [], array $objects = []): ObjectSet { diff --git a/src/Loader/SimpleFileLoader.php b/src/Loader/SimpleFileLoader.php index 23f8f6d5b..769b3b40f 100644 --- a/src/Loader/SimpleFileLoader.php +++ b/src/Loader/SimpleFileLoader.php @@ -38,7 +38,6 @@ public function __construct(ParserInterface $parser, DataLoaderInterface $dataLo $this->parser = $parser; $this->dataLoader = $dataLoader; } - public function loadFile(string $file, array $parameters = [], array $objects = []): ObjectSet { diff --git a/src/Loader/SimpleFilesLoader.php b/src/Loader/SimpleFilesLoader.php index ca97c98b1..e1ca1e29f 100644 --- a/src/Loader/SimpleFilesLoader.php +++ b/src/Loader/SimpleFilesLoader.php @@ -45,7 +45,6 @@ public function __construct(ParserInterface $parser, DataLoaderInterface $dataLo $this->dataMerger = new IncludeDataMerger(); $this->dataLoader = $dataLoader; } - public function loadFiles(array $files, array $parameters = [], array $objects = []): ObjectSet { diff --git a/src/ObjectBag.php b/src/ObjectBag.php index 79847974c..f53858b41 100644 --- a/src/ObjectBag.php +++ b/src/ObjectBag.php @@ -118,13 +118,11 @@ public function get(FixtureIdInterface $fixture): ObjectInterface $fixture instanceof FixtureInterface ? $fixture->getClassName() : 'no class given' ); } - public function count() { return count($this->objects); } - public function getIterator() { diff --git a/src/Parser/IncludeProcessor/DefaultIncludeProcessor.php b/src/Parser/IncludeProcessor/DefaultIncludeProcessor.php index 0b43c584f..f0ea881fc 100644 --- a/src/Parser/IncludeProcessor/DefaultIncludeProcessor.php +++ b/src/Parser/IncludeProcessor/DefaultIncludeProcessor.php @@ -46,7 +46,6 @@ public function __construct(FileLocatorInterface $fileLocator) $this->fileLocator = $fileLocator; $this->dataMerger = new IncludeDataMerger(); } - public function process(ParserInterface $parser, string $file, array $data): array { diff --git a/src/Parser/RuntimeCacheParser.php b/src/Parser/RuntimeCacheParser.php index 0975595d0..db03133c4 100644 --- a/src/Parser/RuntimeCacheParser.php +++ b/src/Parser/RuntimeCacheParser.php @@ -55,7 +55,6 @@ public function __construct(ParserInterface $parser, FileLocatorInterface $fileL $this->fileLocator = $fileLocator; $this->includeProcessor = $includeProcessor; } - public function parse(string $file): array { diff --git a/src/PropertyAccess/ReflectionPropertyAccessor.php b/src/PropertyAccess/ReflectionPropertyAccessor.php index 29104473e..82d143144 100644 --- a/src/PropertyAccess/ReflectionPropertyAccessor.php +++ b/src/PropertyAccess/ReflectionPropertyAccessor.php @@ -35,7 +35,6 @@ public function __construct(PropertyAccessorInterface $decoratedPropertyAccessor { $this->decoratedPropertyAccessor = $decoratedPropertyAccessor; } - public function setValue(&$objectOrArray, $propertyPath, $value): void { @@ -66,7 +65,6 @@ function ($object) use ($propertyPath, $value): void { $setPropertyClosure($objectOrArray); } } - public function getValue($objectOrArray, $propertyPath) { @@ -95,13 +93,11 @@ function ($object) use ($propertyPath) { return $getPropertyClosure($objectOrArray); } } - public function isWritable($objectOrArray, $propertyPath) { return $this->decoratedPropertyAccessor->isWritable($objectOrArray, $propertyPath) || $this->propertyExists($objectOrArray, $propertyPath); } - public function isReadable($objectOrArray, $propertyPath) { diff --git a/src/PropertyAccess/StdPropertyAccessor.php b/src/PropertyAccess/StdPropertyAccessor.php index 18f76a7ee..6ff82da43 100644 --- a/src/PropertyAccess/StdPropertyAccessor.php +++ b/src/PropertyAccess/StdPropertyAccessor.php @@ -31,7 +31,6 @@ public function __construct(PropertyAccessorInterface $decoratedPropertyAccessor { $this->decoratedPropertyAccessor = $decoratedPropertyAccessor; } - public function setValue(&$objectOrArray, $propertyPath, $value): void { @@ -43,7 +42,6 @@ public function setValue(&$objectOrArray, $propertyPath, $value): void $this->decoratedPropertyAccessor->setValue($objectOrArray, $propertyPath, $value); } - public function getValue($objectOrArray, $propertyPath) { @@ -57,7 +55,6 @@ public function getValue($objectOrArray, $propertyPath) return $objectOrArray->$propertyPath; } - public function isWritable($objectOrArray, $propertyPath) { @@ -66,7 +63,6 @@ public function isWritable($objectOrArray, $propertyPath) : $this->decoratedPropertyAccessor->isWritable($objectOrArray, $propertyPath) ; } - public function isReadable($objectOrArray, $propertyPath) { diff --git a/tests/Bridge/Symfony/DependencyInjection/DynamicServicesConfigurationTest.php b/tests/Bridge/Symfony/DependencyInjection/DynamicServicesConfigurationTest.php index 8d538a87a..a51eea5c3 100644 --- a/tests/Bridge/Symfony/DependencyInjection/DynamicServicesConfigurationTest.php +++ b/tests/Bridge/Symfony/DependencyInjection/DynamicServicesConfigurationTest.php @@ -34,7 +34,6 @@ class DynamicServicesConfigurationTest extends TestCase * @var AppKernel */ private $kernel; - protected function setUp(): void { @@ -47,7 +46,6 @@ protected function setUp(): void $this->kernel = KernelFactory::createKernel($config); $this->kernel->boot(); } - protected function tearDown(): void { diff --git a/tests/Bridge/Symfony/Loader/LoaderIntegrationTest.php b/tests/Bridge/Symfony/Loader/LoaderIntegrationTest.php index e0cf9f9a6..66fc9426b 100644 --- a/tests/Bridge/Symfony/Loader/LoaderIntegrationTest.php +++ b/tests/Bridge/Symfony/Loader/LoaderIntegrationTest.php @@ -28,7 +28,6 @@ class LoaderIntegrationTest extends CoreLoaderIntegrationTest * @var KernelInterface */ private static $kernel; - public static function setUpBeforeClass(): void { @@ -36,7 +35,6 @@ public static function setUpBeforeClass(): void static::$kernel = KernelFactory::createKernel(); } - protected function setUp(): void { @@ -44,13 +42,11 @@ protected function setUp(): void $this->nonIsolatedLoader = $this->loader = new NonIsolatedSymfonyLoader(static::$kernel->getContainer()); } - protected function tearDown(): void { static::$kernel->shutdown(); } - public static function tearDownAfterClass(): void { diff --git a/tests/Definition/MethodCallBagTest.php b/tests/Definition/MethodCallBagTest.php index 2c070b798..8e93db0bd 100644 --- a/tests/Definition/MethodCallBagTest.php +++ b/tests/Definition/MethodCallBagTest.php @@ -28,7 +28,6 @@ class MethodCallBagTest extends TestCase * @var ReflectionProperty */ private $propRefl; - protected function setUp(): void { diff --git a/tests/Definition/Object/SimpleObjectTest.php b/tests/Definition/Object/SimpleObjectTest.php index 7d13edc0e..9041df9db 100644 --- a/tests/Definition/Object/SimpleObjectTest.php +++ b/tests/Definition/Object/SimpleObjectTest.php @@ -29,7 +29,6 @@ class SimpleObjectTest extends TestCase * @var ReflectionProperty */ private $propRefl; - protected function setUp(): void { diff --git a/tests/Definition/PropertyBagTest.php b/tests/Definition/PropertyBagTest.php index 06ad244f3..9f52f4533 100644 --- a/tests/Definition/PropertyBagTest.php +++ b/tests/Definition/PropertyBagTest.php @@ -26,7 +26,6 @@ class PropertyBagTest extends TestCase * @var ReflectionProperty */ private $propRefl; - protected function setUp(): void { diff --git a/tests/FileLocator/DefaultFileLocatorTest.php b/tests/FileLocator/DefaultFileLocatorTest.php index ec50b6d08..a1d978a4a 100644 --- a/tests/FileLocator/DefaultFileLocatorTest.php +++ b/tests/FileLocator/DefaultFileLocatorTest.php @@ -27,7 +27,6 @@ class DefaultFileLocatorTest extends TestCase * @var DefaultFileLocator */ private $locator; - protected function setUp(): void { diff --git a/tests/FixtureBagTest.php b/tests/FixtureBagTest.php index 2fe9d35f1..78821fded 100644 --- a/tests/FixtureBagTest.php +++ b/tests/FixtureBagTest.php @@ -32,7 +32,6 @@ class FixtureBagTest extends TestCase * @var ReflectionProperty */ private $propRefl; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/Denormalizer/Fixture/Chainable/ReferenceRangeNameDenormalizerTest.php b/tests/FixtureBuilder/Denormalizer/Fixture/Chainable/ReferenceRangeNameDenormalizerTest.php index 0254d037d..af3d21f5a 100644 --- a/tests/FixtureBuilder/Denormalizer/Fixture/Chainable/ReferenceRangeNameDenormalizerTest.php +++ b/tests/FixtureBuilder/Denormalizer/Fixture/Chainable/ReferenceRangeNameDenormalizerTest.php @@ -39,7 +39,6 @@ class ReferenceRangeNameDenormalizerTest extends ChainableDenormalizerTest { use ProphecyTrait; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/Denormalizer/Fixture/Chainable/SimpleDenormalizerTest.php b/tests/FixtureBuilder/Denormalizer/Fixture/Chainable/SimpleDenormalizerTest.php index 903815509..609ad436f 100644 --- a/tests/FixtureBuilder/Denormalizer/Fixture/Chainable/SimpleDenormalizerTest.php +++ b/tests/FixtureBuilder/Denormalizer/Fixture/Chainable/SimpleDenormalizerTest.php @@ -39,7 +39,6 @@ class SimpleDenormalizerTest extends ChainableDenormalizerTest { use ProphecyTrait; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistryTest.php b/tests/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistryTest.php index ca2b8e6fc..5d34b5363 100644 --- a/tests/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistryTest.php +++ b/tests/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistryTest.php @@ -42,7 +42,6 @@ class FixtureDenormalizerRegistryTest extends TestCase * @var ReflectionProperty */ private $propRefl; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/Denormalizer/FlagParser/ElementFlagParserTest.php b/tests/FixtureBuilder/Denormalizer/FlagParser/ElementFlagParserTest.php index 685468aca..1ec06e040 100644 --- a/tests/FixtureBuilder/Denormalizer/FlagParser/ElementFlagParserTest.php +++ b/tests/FixtureBuilder/Denormalizer/FlagParser/ElementFlagParserTest.php @@ -25,7 +25,6 @@ class ElementFlagParserTest extends FlagParserTestCase { use ProphecyTrait; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/Denormalizer/Parameter/SimpleParameterBagDenormalizerTest.php b/tests/FixtureBuilder/Denormalizer/Parameter/SimpleParameterBagDenormalizerTest.php index 5d011d58e..9035f97e2 100644 --- a/tests/FixtureBuilder/Denormalizer/Parameter/SimpleParameterBagDenormalizerTest.php +++ b/tests/FixtureBuilder/Denormalizer/Parameter/SimpleParameterBagDenormalizerTest.php @@ -29,7 +29,6 @@ class SimpleParameterBagDenormalizerTest extends TestCase * @var SimpleParameterBagDenormalizer */ private $denormalizer; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/ExpressionLanguage/Lexer/FunctionLexerTest.php b/tests/FixtureBuilder/ExpressionLanguage/Lexer/FunctionLexerTest.php index fc70fbdf3..04d9f1036 100644 --- a/tests/FixtureBuilder/ExpressionLanguage/Lexer/FunctionLexerTest.php +++ b/tests/FixtureBuilder/ExpressionLanguage/Lexer/FunctionLexerTest.php @@ -32,7 +32,6 @@ class FunctionLexerTest extends TestCase * @var FunctionLexer */ private $lexer; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/ExpressionLanguage/Lexer/FunctionTokenizerTest.php b/tests/FixtureBuilder/ExpressionLanguage/Lexer/FunctionTokenizerTest.php index 4197a5efe..b2b7e747d 100644 --- a/tests/FixtureBuilder/ExpressionLanguage/Lexer/FunctionTokenizerTest.php +++ b/tests/FixtureBuilder/ExpressionLanguage/Lexer/FunctionTokenizerTest.php @@ -27,7 +27,6 @@ class FunctionTokenizerTest extends TestCase * @var FunctionTokenizer */ private $tokenizer; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/ExpressionLanguage/Lexer/LexerIntegrationTest.php b/tests/FixtureBuilder/ExpressionLanguage/Lexer/LexerIntegrationTest.php index 6c76d7c90..864d1f242 100644 --- a/tests/FixtureBuilder/ExpressionLanguage/Lexer/LexerIntegrationTest.php +++ b/tests/FixtureBuilder/ExpressionLanguage/Lexer/LexerIntegrationTest.php @@ -32,7 +32,6 @@ class LexerIntegrationTest extends TestCase * @var LexerInterface */ protected $lexer; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/ExpressionLanguage/Lexer/ReferenceLexerTest.php b/tests/FixtureBuilder/ExpressionLanguage/Lexer/ReferenceLexerTest.php index ed2fe4b61..99384eee8 100644 --- a/tests/FixtureBuilder/ExpressionLanguage/Lexer/ReferenceLexerTest.php +++ b/tests/FixtureBuilder/ExpressionLanguage/Lexer/ReferenceLexerTest.php @@ -30,7 +30,6 @@ class ReferenceLexerTest extends TestCase * @var ReferenceLexer */ private $lexer; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/TokenParserRegistryTest.php b/tests/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/TokenParserRegistryTest.php index 5d8cf9415..71d8d1631 100644 --- a/tests/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/TokenParserRegistryTest.php +++ b/tests/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/TokenParserRegistryTest.php @@ -41,7 +41,6 @@ class TokenParserRegistryTest extends TestCase * @var ReflectionProperty */ private $parsersRefl; - protected function setUp(): void { diff --git a/tests/FixtureBuilder/ExpressionLanguage/TokenTypeTest.php b/tests/FixtureBuilder/ExpressionLanguage/TokenTypeTest.php index 4af8aff0c..e28a22392 100644 --- a/tests/FixtureBuilder/ExpressionLanguage/TokenTypeTest.php +++ b/tests/FixtureBuilder/ExpressionLanguage/TokenTypeTest.php @@ -26,7 +26,6 @@ class TokenTypeTest extends TestCase * @var string[] */ private $constants; - protected function setUp(): void { diff --git a/tests/Generator/Hydrator/Property/SymfonyPropertyAccessorHydratorTest.php b/tests/Generator/Hydrator/Property/SymfonyPropertyAccessorHydratorTest.php index 00d69dae0..74fea955d 100644 --- a/tests/Generator/Hydrator/Property/SymfonyPropertyAccessorHydratorTest.php +++ b/tests/Generator/Hydrator/Property/SymfonyPropertyAccessorHydratorTest.php @@ -49,7 +49,6 @@ class SymfonyPropertyAccessorHydratorTest extends TestCase * @var PropertyAccessorInterface */ private $propertyAccessor; - protected function setUp(): void { diff --git a/tests/Generator/Instantiator/Chainable/AbstractChainableInstantiatorTest.php b/tests/Generator/Instantiator/Chainable/AbstractChainableInstantiatorTest.php index ac5aa7f45..53cdfd6a1 100644 --- a/tests/Generator/Instantiator/Chainable/AbstractChainableInstantiatorTest.php +++ b/tests/Generator/Instantiator/Chainable/AbstractChainableInstantiatorTest.php @@ -42,7 +42,6 @@ class AbstractChainableInstantiatorTest extends TestCase * @var AbstractChainableInstantiator */ private $instantiator; - protected function setUp(): void { diff --git a/tests/Generator/Instantiator/Chainable/NoCallerMethodCallInstantiatorTest.php b/tests/Generator/Instantiator/Chainable/NoCallerMethodCallInstantiatorTest.php index 637035df7..4ae03a0ea 100644 --- a/tests/Generator/Instantiator/Chainable/NoCallerMethodCallInstantiatorTest.php +++ b/tests/Generator/Instantiator/Chainable/NoCallerMethodCallInstantiatorTest.php @@ -37,7 +37,6 @@ class NoCallerMethodCallInstantiatorTest extends TestCase * @var NoCallerMethodCallInstantiator */ private $instantiator; - protected function setUp(): void { diff --git a/tests/Generator/Instantiator/Chainable/NoMethodCallInstantiatorTest.php b/tests/Generator/Instantiator/Chainable/NoMethodCallInstantiatorTest.php index 4d1ec514e..8b623cca6 100644 --- a/tests/Generator/Instantiator/Chainable/NoMethodCallInstantiatorTest.php +++ b/tests/Generator/Instantiator/Chainable/NoMethodCallInstantiatorTest.php @@ -37,7 +37,6 @@ class NoMethodCallInstantiatorTest extends TestCase * @var NoMethodCallInstantiator */ private $instantiator; - protected function setUp(): void { diff --git a/tests/Generator/Instantiator/Chainable/NullConstructorInstantiatorTest.php b/tests/Generator/Instantiator/Chainable/NullConstructorInstantiatorTest.php index 69b2b24a6..d65eee328 100644 --- a/tests/Generator/Instantiator/Chainable/NullConstructorInstantiatorTest.php +++ b/tests/Generator/Instantiator/Chainable/NullConstructorInstantiatorTest.php @@ -37,7 +37,6 @@ class NullConstructorInstantiatorTest extends TestCase * @var NullConstructorInstantiator */ private $instantiator; - protected function setUp(): void { diff --git a/tests/Generator/Instantiator/Chainable/StaticFactoryInstantiatorTest.php b/tests/Generator/Instantiator/Chainable/StaticFactoryInstantiatorTest.php index 23bf1d1e4..d71b3f160 100644 --- a/tests/Generator/Instantiator/Chainable/StaticFactoryInstantiatorTest.php +++ b/tests/Generator/Instantiator/Chainable/StaticFactoryInstantiatorTest.php @@ -40,7 +40,6 @@ class StaticFactoryInstantiatorTest extends TestCase * @var StaticFactoryInstantiator */ private $instantiator; - protected function setUp(): void { diff --git a/tests/Generator/NamedArgumentsResolverTest.php b/tests/Generator/NamedArgumentsResolverTest.php index 29114a9f2..65c035be3 100644 --- a/tests/Generator/NamedArgumentsResolverTest.php +++ b/tests/Generator/NamedArgumentsResolverTest.php @@ -13,8 +13,8 @@ namespace Nelmio\Alice\Generator; -use Nelmio\Alice\Entity\DummyWithNoArgumentConstructor; use Nelmio\Alice\Entity\DummyWithMethods; +use Nelmio\Alice\Entity\DummyWithNoArgumentConstructor; use Nelmio\Alice\Entity\EmptyDummy; use PHPUnit\Framework\TestCase; use RuntimeException; diff --git a/tests/Generator/Resolver/Fixture/TemplateFixtureBagResolverTest.php b/tests/Generator/Resolver/Fixture/TemplateFixtureBagResolverTest.php index b43380815..850326df7 100644 --- a/tests/Generator/Resolver/Fixture/TemplateFixtureBagResolverTest.php +++ b/tests/Generator/Resolver/Fixture/TemplateFixtureBagResolverTest.php @@ -46,7 +46,6 @@ class TemplateFixtureBagResolverTest extends TestCase * @var ReflectionProperty */ private $propRefl; - protected function setUp(): void { diff --git a/tests/Generator/Resolver/Value/Chainable/DynamicArrayValueResolverTest.php b/tests/Generator/Resolver/Value/Chainable/DynamicArrayValueResolverTest.php index f44a8588f..504ed7086 100644 --- a/tests/Generator/Resolver/Value/Chainable/DynamicArrayValueResolverTest.php +++ b/tests/Generator/Resolver/Value/Chainable/DynamicArrayValueResolverTest.php @@ -42,7 +42,6 @@ class DynamicArrayValueResolverTest extends TestCase * @var ReflectionProperty */ private $resolverRefl; - protected function setUp(): void { diff --git a/tests/Generator/Resolver/Value/Chainable/UniqueValueResolverTest.php b/tests/Generator/Resolver/Value/Chainable/UniqueValueResolverTest.php index d17002769..513ed4576 100644 --- a/tests/Generator/Resolver/Value/Chainable/UniqueValueResolverTest.php +++ b/tests/Generator/Resolver/Value/Chainable/UniqueValueResolverTest.php @@ -49,7 +49,6 @@ class UniqueValueResolverTest extends TestCase * @var ReflectionProperty */ private $poolRefl; - protected function setUp(): void { diff --git a/tests/ObjectBagTest.php b/tests/ObjectBagTest.php index 0ffe05c7f..6f0a7671a 100644 --- a/tests/ObjectBagTest.php +++ b/tests/ObjectBagTest.php @@ -36,7 +36,6 @@ class ObjectBagTest extends TestCase * @var ReflectionProperty */ private $propRefl; - protected function setUp(): void { diff --git a/tests/Parser/IncludeProcessor/DefaultIncludeProcessorTest.php b/tests/Parser/IncludeProcessor/DefaultIncludeProcessorTest.php index 55b3125d0..091504ea4 100644 --- a/tests/Parser/IncludeProcessor/DefaultIncludeProcessorTest.php +++ b/tests/Parser/IncludeProcessor/DefaultIncludeProcessorTest.php @@ -32,7 +32,6 @@ class DefaultIncludeProcessorTest extends TestCase use ProphecyTrait; private static $dir; - protected function setUp(): void { diff --git a/tests/Parser/IncludeProcessor/IncludeDataMergerTest.php b/tests/Parser/IncludeProcessor/IncludeDataMergerTest.php index aba9a6781..fb2134474 100644 --- a/tests/Parser/IncludeProcessor/IncludeDataMergerTest.php +++ b/tests/Parser/IncludeProcessor/IncludeDataMergerTest.php @@ -24,7 +24,6 @@ class IncludeDataMergerTest extends TestCase * @var IncludeDataMerger */ private $merger; - protected function setUp(): void { diff --git a/tests/Parser/RuntimeCacheParserTest.php b/tests/Parser/RuntimeCacheParserTest.php index 00edaf07c..60dffc900 100644 --- a/tests/Parser/RuntimeCacheParserTest.php +++ b/tests/Parser/RuntimeCacheParserTest.php @@ -33,7 +33,6 @@ class RuntimeCacheParserTest extends TestCase use ProphecyTrait; private static $dir; - protected function setUp(): void {