mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
new cs rule: single_line_empty_body
Rule is added to the last version of php-cs-fixer
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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()
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user