mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +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:
@@ -27,9 +27,7 @@ class ClosingMotiveRender implements ChillEntityRenderInterface
|
||||
use BoxUtilsChillEntityRenderTrait;
|
||||
private const SEPARATOR = ' > ';
|
||||
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper) {}
|
||||
|
||||
public function renderBox($entity, array $options): string
|
||||
{
|
||||
|
@@ -28,9 +28,7 @@ class PersonRender implements PersonRenderInterface
|
||||
{
|
||||
use BoxUtilsChillEntityRenderTrait;
|
||||
|
||||
public function __construct(private readonly ConfigPersonAltNamesHelper $configAltNamesHelper, private readonly \Twig\Environment $engine, private readonly TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly ConfigPersonAltNamesHelper $configAltNamesHelper, private readonly \Twig\Environment $engine, private readonly TranslatorInterface $translator) {}
|
||||
|
||||
public function renderBox($person, array $options): string
|
||||
{
|
||||
|
@@ -19,6 +19,4 @@ use Chill\PersonBundle\Entity\Person;
|
||||
*
|
||||
* @extends ChillEntityRenderInterface<Person>
|
||||
*/
|
||||
interface PersonRenderInterface extends ChillEntityRenderInterface
|
||||
{
|
||||
}
|
||||
interface PersonRenderInterface extends ChillEntityRenderInterface {}
|
||||
|
@@ -20,9 +20,7 @@ use Chill\PersonBundle\Entity\Person\PersonResourceKind;
|
||||
*/
|
||||
final readonly class ResourceKindRender implements ChillEntityRenderInterface
|
||||
{
|
||||
public function __construct(private TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
public function __construct(private TranslatableStringHelper $translatableStringHelper) {}
|
||||
|
||||
public function renderBox($entity, array $options): string
|
||||
{
|
||||
|
@@ -47,9 +47,7 @@ class SocialActionRender implements ChillEntityRenderInterface
|
||||
*/
|
||||
final public const SHOW_AND_CHILDREN = 'show_and_children';
|
||||
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper, private readonly \Twig\Environment $engine, private readonly TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper, private readonly \Twig\Environment $engine, private readonly TranslatorInterface $translator) {}
|
||||
|
||||
public function renderBox($socialAction, array $options): string
|
||||
{
|
||||
|
@@ -40,9 +40,7 @@ final readonly class SocialIssueRender implements ChillEntityRenderInterface
|
||||
*/
|
||||
public const SHOW_AND_CHILDREN = 'show_and_children';
|
||||
|
||||
public function __construct(private TranslatableStringHelper $translatableStringHelper, private \Twig\Environment $engine, private TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
public function __construct(private TranslatableStringHelper $translatableStringHelper, private \Twig\Environment $engine, private TranslatorInterface $translator) {}
|
||||
|
||||
public function renderBox($socialIssue, array $options): string
|
||||
{
|
||||
|
Reference in New Issue
Block a user