Skip to content

Commit cdfb115

Browse files
Leverage symfony-tools/fabbot
1 parent c86da84 commit cdfb115

27 files changed

+104
-90
lines changed

.github/workflows/fabbot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: CS
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
call-fabbot:
11+
name: Fabbot
12+
uses: symfony-tools/fabbot/.github/workflows/fabbot.yml@main
13+
with:
14+
package: MakerBundle

src/Maker/MakeMigration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
114114
try {
115115
$returnCode = $generateMigrationCommand->run($generateMigrationCommandInput, $commandOutput);
116116

117-
// non-zero code would ideally mean the internal command has already printed an errror
117+
// non-zero code would ideally mean the internal command has already printed an error
118118
// this happens if you "decline" generating a migration when you already
119119
// have some available
120120
if (0 !== $returnCode) {

tests/Command/MakerCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class MakerCommandTest extends TestCase
2525
{
26-
public function testExceptionOnMissingDependencies(): void
26+
public function testExceptionOnMissingDependencies()
2727
{
2828
$this->expectException(RuntimeCommandException::class);
2929
if (method_exists($this, 'expectExceptionMessageMatches')) {
@@ -47,7 +47,7 @@ public function testExceptionOnMissingDependencies(): void
4747
$tester->execute([]);
4848
}
4949

50-
public function testExceptionOnUnknownRootNamespace(): void
50+
public function testExceptionOnUnknownRootNamespace()
5151
{
5252
$maker = $this->createMock(MakerInterface::class);
5353

tests/Docker/DatabaseServicesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
final class DatabaseServicesTest extends TestCase
2222
{
23-
public function testExceptionThrownWithInvalidDatabaseProvided(): void
23+
public function testExceptionThrownWithInvalidDatabaseProvided()
2424
{
2525
$this->expectException(RuntimeCommandException::class);
2626
$this->expectExceptionMessage('foo is not a valid / supported docker database type.');
@@ -38,7 +38,7 @@ public function mixedNameDataProvider(): \Generator
3838
/**
3939
* @dataProvider mixedNameDataProvider
4040
*/
41-
public function testSkeletonReturnArrayForDesiredDatabase(string $databaseName): void
41+
public function testSkeletonReturnArrayForDesiredDatabase(string $databaseName)
4242
{
4343
$result = DockerDatabaseServices::getDatabaseSkeleton($databaseName, 'latest');
4444

@@ -49,7 +49,7 @@ public function testSkeletonReturnArrayForDesiredDatabase(string $databaseName):
4949
/**
5050
* @dataProvider mixedNameDataProvider
5151
*/
52-
public function testGetDefaultPorts(string $databaseName): void
52+
public function testGetDefaultPorts(string $databaseName)
5353
{
5454
$result = DockerDatabaseServices::getDefaultPorts($databaseName);
5555

@@ -59,7 +59,7 @@ public function testGetDefaultPorts(string $databaseName): void
5959
/**
6060
* @dataProvider mixedNameDataProvider
6161
*/
62-
public function testSuggestedVersion(string $databaseName): void
62+
public function testSuggestedVersion(string $databaseName)
6363
{
6464
$result = DockerDatabaseServices::getSuggestedServiceVersion($databaseName);
6565

tests/Doctrine/EntityRegeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class EntityRegeneratorTest extends TestCase
3737
/**
3838
* @dataProvider getRegenerateEntitiesTests
3939
*/
40-
public function testRegenerateEntities(string $expectedDirName, bool $overwrite): void
40+
public function testRegenerateEntities(string $expectedDirName, bool $overwrite)
4141
{
4242
$kernel = new TestEntityRegeneratorKernel('dev', true);
4343
$this->doTestRegeneration(

tests/FileManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function getPathForTemplateTests()
188188
];
189189
}
190190

191-
public function testWithMakerFileLinkFormatter(): void
191+
public function testWithMakerFileLinkFormatter()
192192
{
193193
if (getenv('MAKER_DISABLE_FILE_LINKS')) {
194194
$this->markTestSkipped();

tests/GeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GeneratorTest extends TestCase
2020
/**
2121
* @dataProvider getClassNameDetailsTests
2222
*/
23-
public function testCreateClassNameDetails(string $name, string $prefix, string $suffix, string $expectedFullClassName, string $expectedRelativeClassName): void
23+
public function testCreateClassNameDetails(string $name, string $prefix, string $suffix, string $expectedFullClassName, string $expectedRelativeClassName)
2424
{
2525
$fileManager = $this->createMock(FileManager::class);
2626
$fileManager->expects($this->any())

tests/Maker/FunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class FunctionalTest extends TestCase
2424
* Smoke test to make sure the DI autowiring works and all makers
2525
* are registered and have the correct arguments.
2626
*/
27-
public function testWiring(): void
27+
public function testWiring()
2828
{
2929
$kernel = new MakerTestKernel('dev', true);
3030

tests/RegexTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class RegexTest extends TestCase
2727
{
2828
/** @dataProvider generatedFilesRegexDataProvider */
29-
public function testMakerTestEnvironmentGeneratedFilesRegex(string $subjectData, array $expectedResult): void
29+
public function testMakerTestEnvironmentGeneratedFilesRegex(string $subjectData, array $expectedResult)
3030
{
3131
$result = [];
3232

@@ -69,7 +69,7 @@ private function generatedFilesRegexDataProvider(): \Generator
6969
}
7070

7171
/** @dataProvider webhookNameRegexDataProvider */
72-
public function testWebhookNameRegex(string $subjectData, bool $expectedResult): void
72+
public function testWebhookNameRegex(string $subjectData, bool $expectedResult)
7373
{
7474
$result = preg_match(MakeWebhook::WEBHOOK_NAME_PATTERN, $subjectData);
7575

tests/Security/InteractiveSecurityHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function guessEmailFieldTest()
209209
}
210210

211211
/** @dataProvider authenticatorClassProvider */
212-
public function testGetAuthenticatorsFromConfig(array $firewalls, array $expectedResults): void
212+
public function testGetAuthenticatorsFromConfig(array $firewalls, array $expectedResults)
213213
{
214214
$helper = new InteractiveSecurityHelper();
215215
$result = $helper->getAuthenticatorsFromConfig($firewalls);

0 commit comments

Comments
 (0)