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

@@ -58,8 +58,7 @@ final class SingleTaskController extends AbstractController
private readonly LoggerInterface $logger,
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory,
private readonly SingleTaskStateRepository $singleTaskStateRepository
) {
}
) {}
/**
* @Route(

View File

@@ -28,9 +28,7 @@ use Symfony\Component\Security\Core\Role\Role;
class SingleTaskType extends AbstractType
{
public function __construct(private readonly ParameterBagInterface $parameterBag, private readonly CenterResolverDispatcherInterface $centerResolverDispatcher, private readonly ScopeResolverDispatcher $scopeResolverDispatcher)
{
}
public function __construct(private readonly ParameterBagInterface $parameterBag, private readonly CenterResolverDispatcherInterface $centerResolverDispatcher, private readonly ScopeResolverDispatcher $scopeResolverDispatcher) {}
public function buildForm(FormBuilderInterface $builder, array $options)
{

View File

@@ -17,6 +17,4 @@ namespace Chill\TaskBundle\Repository;
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
abstract class AbstractTaskRepository extends \Doctrine\ORM\EntityRepository
{
}
abstract class AbstractTaskRepository extends \Doctrine\ORM\EntityRepository {}

View File

@@ -17,6 +17,4 @@ namespace Chill\TaskBundle\Repository;
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class RecurringTaskRepository extends \Doctrine\ORM\EntityRepository
{
}
class RecurringTaskRepository extends \Doctrine\ORM\EntityRepository {}

View File

@@ -29,9 +29,7 @@ use function substr;
final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepositoryInterface
{
public function __construct(private CenterResolverManagerInterface $centerResolverDispatcher, private EntityManagerInterface $em, private Security $security, private AuthorizationHelperInterface $authorizationHelper)
{
}
public function __construct(private CenterResolverManagerInterface $centerResolverDispatcher, private EntityManagerInterface $em, private Security $security, private AuthorizationHelperInterface $authorizationHelper) {}
public function buildBaseQuery(
?string $pattern = null,

View File

@@ -22,8 +22,7 @@ class SingleTaskStateRepository
public function __construct(
private readonly Connection $connection
) {
}
) {}
/**
* Return a list of all states associated to at least one single task in the database

View File

@@ -30,8 +30,7 @@ class AuthorizationEvent extends \Symfony\Contracts\EventDispatcher\Event
private readonly Person|AbstractTask|AccompanyingPeriod|null $subject,
private readonly string $attribute,
private readonly TokenInterface $token
) {
}
) {}
public function getAttribute()
{

View File

@@ -17,6 +17,4 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
* @internal
* @coversNothing
*/
final class TaskControllerTest extends WebTestCase
{
}
final class TaskControllerTest extends WebTestCase {}

View File

@@ -40,9 +40,7 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
{
final public const TYPE = 'chill_task.transition';
public function __construct(protected EntityManagerInterface $em, protected Registry $registry, protected AuthorizationHelper $authorizationHelper, protected Security $security)
{
}
public function __construct(protected EntityManagerInterface $em, protected Registry $registry, protected AuthorizationHelper $authorizationHelper, protected Security $security) {}
public function fetchQuery($context, $args)
{

View File

@@ -11,6 +11,4 @@ declare(strict_types=1);
namespace Chill\TaskBundle\Workflow;
interface TaskWorkflowDefinition
{
}
interface TaskWorkflowDefinition {}