php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -55,7 +55,8 @@ final class SingleTaskController extends AbstractController
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory,
private readonly SingleTaskStateRepository $singleTaskStateRepository,
private readonly SingleTaskRepository $singleTaskRepository,
) {}
) {
}
/**
* @Route(
@@ -625,7 +626,7 @@ final class SingleTaskController extends AbstractController
}
/**
* @return \Symfony\Component\Form\FormInterface
* @return FormInterface
*/
protected function setCreateForm(SingleTask $task, string $role)
{

View File

@@ -103,9 +103,6 @@ class SingleTask extends AbstractTask
private Collection $taskPlaceEvents;
/**
* @var \DateInterval
* and this.getEndDate() === null
*
* @ORM\Column(name="warning_interval", type="dateinterval", nullable=true)
*
* @Serializer\Groups({"read"})

View File

@@ -27,7 +27,9 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
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,4 +17,6 @@ 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,4 +17,6 @@ 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

@@ -23,7 +23,9 @@ use Symfony\Component\Security\Core\Security;
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,7 +22,8 @@ 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

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

View File

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

View File

@@ -30,7 +30,9 @@ 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,4 +11,6 @@ declare(strict_types=1);
namespace Chill\TaskBundle\Workflow;
interface TaskWorkflowDefinition {}
interface TaskWorkflowDefinition
{
}