mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +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:
@@ -58,8 +58,7 @@ final class SingleTaskController extends AbstractController
|
||||
private readonly LoggerInterface $logger,
|
||||
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory,
|
||||
private readonly SingleTaskStateRepository $singleTaskStateRepository
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* @Route(
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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 {}
|
||||
|
@@ -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 {}
|
||||
|
@@ -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,
|
||||
|
@@ -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
|
||||
|
@@ -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()
|
||||
{
|
||||
|
@@ -17,6 +17,4 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class TaskControllerTest extends WebTestCase
|
||||
{
|
||||
}
|
||||
final class TaskControllerTest extends WebTestCase {}
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -11,6 +11,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\TaskBundle\Workflow;
|
||||
|
||||
interface TaskWorkflowDefinition
|
||||
{
|
||||
}
|
||||
interface TaskWorkflowDefinition {}
|
||||
|
Reference in New Issue
Block a user