fix code style

This commit is contained in:
Christian Flothmann 2021-01-04 15:15:06 +01:00
parent 0304f754b3
commit 689e3039fc
14 changed files with 14 additions and 14 deletions

View File

@ -289,7 +289,7 @@ abstract class AbstractDescriptorTest extends TestCase
}
/** @dataProvider getDescribeContainerBuilderWithPriorityTagsTestData */
public function testDescribeContainerBuilderWithPriorityTags(ContainerBuilder $builder, $expectedDescription, array $options): void
public function testDescribeContainerBuilderWithPriorityTags(ContainerBuilder $builder, $expectedDescription, array $options)
{
$this->assertDescription($expectedDescription, $builder, $options);
}

View File

@ -12,7 +12,7 @@ $container->loadFromExtension('framework', [
'initial_marking' => ['draft'],
'metadata' => [
'title' => 'article workflow',
'description' => 'workflow for articles'
'description' => 'workflow for articles',
],
'places' => [
'draft',

View File

@ -1641,7 +1641,7 @@ abstract class FrameworkExtensionTest extends TestCase
/**
* @dataProvider provideMailer
*/
public function testMailer(string $configFile, array $expectedTransports): void
public function testMailer(string $configFile, array $expectedTransports)
{
$container = $this->createContainerFromFile($configFile);

View File

@ -4,7 +4,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures;
class_alias(
ClassAliasTargetClass::class,
__NAMESPACE__ . '\ClassAliasExampleClass'
__NAMESPACE__.'\ClassAliasExampleClass'
);
if (false) {

View File

@ -6,7 +6,7 @@ use Symfony\Component\Validator\Constraints as Assert;
class Category
{
const NAME_PATTERN = '/\w+/';
public const NAME_PATTERN = '/\w+/';
public $id;

View File

@ -345,7 +345,7 @@ class SecurityDataCollectorTest extends TestCase
*
* @dataProvider providerCollectDecisionLog
*/
public function testCollectDecisionLog(string $strategy, array $decisionLog, array $voters, array $expectedVoterClasses, array $expectedDecisionLog): void
public function testCollectDecisionLog(string $strategy, array $decisionLog, array $voters, array $expectedVoterClasses, array $expectedDecisionLog)
{
$accessDecisionManager = $this
->getMockBuilder(TraceableAccessDecisionManager::class)

View File

@ -27,7 +27,7 @@ class Html5ParserCrawlerTest extends AbstractCrawlerTest
}
/** @dataProvider validHtml5Provider */
public function testHtml5ParserParseContentStartingWithValidHeading(string $content): void
public function testHtml5ParserParseContentStartingWithValidHeading(string $content)
{
$this->skipTestIfHTML5LibraryNotAvailable();

View File

@ -30,7 +30,7 @@ class StringToFloatTransformerTest extends TestCase
/**
* @dataProvider provideTransformations
*/
public function testTransform($from, $to): void
public function testTransform($from, $to)
{
$transformer = new StringToFloatTransformer();

View File

@ -39,7 +39,7 @@ ERROR;
/**
* @dataProvider provideParseError
*/
public function testParseError(string $mimeType, string $json, string $expectedMessage): void
public function testParseError(string $mimeType, string $json, string $expectedMessage)
{
$response = $this->createMock(ResponseInterface::class);
$response

View File

@ -54,7 +54,7 @@ abstract class TransportFactoryTestCase extends TestCase
/**
* @dataProvider supportsProvider
*/
public function testSupports(Dsn $dsn, bool $supports): void
public function testSupports(Dsn $dsn, bool $supports)
{
$factory = $this->getFactory();

View File

@ -20,7 +20,7 @@ class DsnTest extends TestCase
/**
* @dataProvider fromStringProvider
*/
public function testFromString(string $string, Dsn $dsn): void
public function testFromString(string $string, Dsn $dsn)
{
$this->assertEquals($dsn, Dsn::fromString($string));
}

View File

@ -27,7 +27,7 @@ class TransportTest extends TestCase
/**
* @dataProvider fromStringProvider
*/
public function testFromString(string $dsn, TransportInterface $transport): void
public function testFromString(string $dsn, TransportInterface $transport)
{
$transportFactory = new Transport([new DummyTransportFactory()]);

View File

@ -43,7 +43,7 @@ class ObjectLoaderTest extends TestCase
/**
* @dataProvider getBadResourceStrings
*/
public function testExceptionWithoutSyntax(string $resourceString): void
public function testExceptionWithoutSyntax(string $resourceString)
{
$this->expectException('InvalidArgumentException');
$loader = new TestObjectLoader();

View File

@ -71,7 +71,7 @@ class ObjectRouteLoaderTest extends TestCase
/**
* @dataProvider getBadResourceStrings
*/
public function testExceptionWithoutSyntax(string $resourceString): void
public function testExceptionWithoutSyntax(string $resourceString)
{
$this->expectException('InvalidArgumentException');
$loader = new TestObjectRouteLoader();