new cs rule: single_line_empty_body

Rule is added to the last version of php-cs-fixer
This commit is contained in:
2023-09-12 15:58:59 +02:00
parent b9231a91a3
commit d2323e91ca
606 changed files with 639 additions and 1804 deletions

View File

@@ -162,9 +162,7 @@ final class CronManagerTest extends TestCase
class JobCanRun implements CronJobInterface
{
public function __construct(private readonly string $key)
{
}
public function __construct(private readonly string $key) {}
public function canRun(?CronJobExecution $cronJobExecution): bool
{

View File

@@ -535,16 +535,13 @@ class DummyFilterWithApplying implements FilterInterface
public function __construct(
private readonly ?string $role,
private readonly string $applyOn
) {
}
) {}
public function getTitle()
{
return 'dummy';
}
public function buildForm(FormBuilderInterface $builder)
{
}
public function buildForm(FormBuilderInterface $builder) {}
public function getFormDefaultData(): array
{
return [];
@@ -557,9 +554,7 @@ class DummyFilterWithApplying implements FilterInterface
{
return $this->role;
}
public function alterQuery(QueryBuilder $qb, $data)
{
}
public function alterQuery(QueryBuilder $qb, $data) {}
public function applyOn()
{
return $this->applyOn;
@@ -574,17 +569,14 @@ class DummyExport implements ExportInterface
* @var array<string>
*/
private readonly array $supportedModifiers,
) {
}
) {}
public function getTitle()
{
return 'dummy';
}
public function buildForm(FormBuilderInterface $builder)
{
}
public function buildForm(FormBuilderInterface $builder) {}
public function getFormDefaultData(): array
{

View File

@@ -36,9 +36,7 @@ final class TokenManagerTest extends KernelTestCase
$this->tokenManager = new TokenManager('secret', $logger);
}
public static function setUpBefore()
{
}
public static function setUpBefore() {}
public function testGenerate()
{

View File

@@ -34,9 +34,7 @@ final class DefaultScopeResolverTest extends TestCase
{
$scope = new Scope();
$entity = new class ($scope) implements HasScopeInterface {
public function __construct(private readonly Scope $scope)
{
}
public function __construct(private readonly Scope $scope) {}
public function getScope()
{
@@ -52,9 +50,7 @@ final class DefaultScopeResolverTest extends TestCase
public function testHasScopesInterface()
{
$entity = new class ($scopeA = new Scope(), $scopeB = new Scope()) implements HasScopesInterface {
public function __construct(private readonly Scope $scopeA, private readonly Scope $scopeB)
{
}
public function __construct(private readonly Scope $scopeA, private readonly Scope $scopeB) {}
public function getScopes(): iterable
{

View File

@@ -35,9 +35,7 @@ final class ScopeResolverDispatcherTest extends TestCase
{
$scope = new Scope();
$entity = new class ($scope) implements HasScopeInterface {
public function __construct(private readonly Scope $scope)
{
}
public function __construct(private readonly Scope $scope) {}
public function getScope()
{