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

@@ -13,6 +13,4 @@ namespace Chill\ReportBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class ChillReportBundle extends Bundle
{
}
class ChillReportBundle extends Bundle {}

View File

@@ -60,9 +60,7 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
protected array $slugs = [];
public function __construct(protected CustomFieldsGroup $customfieldsGroup, protected TranslatableStringHelper $translatableStringHelper, protected TranslatorInterface $translator, protected CustomFieldProvider $customFieldProvider, protected EntityManagerInterface $em)
{
}
public function __construct(protected CustomFieldsGroup $customfieldsGroup, protected TranslatableStringHelper $translatableStringHelper, protected TranslatorInterface $translator, protected CustomFieldProvider $customFieldProvider, protected EntityManagerInterface $em) {}
public function buildForm(FormBuilderInterface $builder)
{

View File

@@ -19,9 +19,7 @@ use Doctrine\ORM\Query\Expr;
class ReportDateFilter implements FilterInterface
{
public function __construct(private readonly RollingDateConverterInterface $rollingDateConverter)
{
}
public function __construct(private readonly RollingDateConverterInterface $rollingDateConverter) {}
public function addRole(): ?string
{

View File

@@ -43,9 +43,7 @@ final class ReportVoterTest extends KernelTestCase
*/
protected $voter;
public static function setUpBeforeClass(): void
{
}
public static function setUpBeforeClass(): void {}
protected function setUp(): void
{

View File

@@ -35,9 +35,7 @@ use function strtr;
*/
class TimelineReportProvider implements TimelineProviderInterface
{
public function __construct(protected EntityManager $em, protected AuthorizationHelper $helper, private readonly Security $security, protected CustomFieldsHelper $customFieldsHelper, protected $showEmptyValues)
{
}
public function __construct(protected EntityManager $em, protected AuthorizationHelper $helper, private readonly Security $security, protected CustomFieldsHelper $customFieldsHelper, protected $showEmptyValues) {}
public function fetchQuery($context, array $args)
{