mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -27,7 +27,7 @@ class ClosingMotiveRender implements ChillEntityRenderInterface
|
||||
use BoxUtilsChillEntityRenderTrait;
|
||||
private const SEPARATOR = ' > ';
|
||||
|
||||
public function __construct(private TranslatableStringHelper $translatableStringHelper)
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -28,7 +28,7 @@ class PersonRender implements PersonRenderInterface
|
||||
{
|
||||
use BoxUtilsChillEntityRenderTrait;
|
||||
|
||||
public function __construct(private ConfigPersonAltNamesHelper $configAltNamesHelper, private EngineInterface $engine, private TranslatorInterface $translator)
|
||||
public function __construct(private readonly ConfigPersonAltNamesHelper $configAltNamesHelper, private readonly EngineInterface $engine, private readonly TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -18,7 +18,7 @@ use Chill\PersonBundle\Entity\Person\PersonResourceKind;
|
||||
/**
|
||||
* @implements ChillEntityRenderInterface<PersonResourceKind>
|
||||
*/
|
||||
final class ResourceKindRender implements ChillEntityRenderInterface
|
||||
final readonly class ResourceKindRender implements ChillEntityRenderInterface
|
||||
{
|
||||
public function __construct(private TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
|
@@ -25,9 +25,9 @@ use function implode;
|
||||
*/
|
||||
class SocialActionRender implements ChillEntityRenderInterface
|
||||
{
|
||||
public const AND_CHILDREN_MENTION = 'show_and_children_mention';
|
||||
final public const AND_CHILDREN_MENTION = 'show_and_children_mention';
|
||||
|
||||
public const DEFAULT_ARGS = [
|
||||
final public const DEFAULT_ARGS = [
|
||||
self::SEPARATOR_KEY => ' > ',
|
||||
self::NO_BADGE => false,
|
||||
self::SHOW_AND_CHILDREN => false,
|
||||
@@ -37,17 +37,17 @@ class SocialActionRender implements ChillEntityRenderInterface
|
||||
/**
|
||||
* if true, the action will not be encapsulated into a "badge".
|
||||
*/
|
||||
public const NO_BADGE = 'no-badge';
|
||||
final public const NO_BADGE = 'no-badge';
|
||||
|
||||
public const SEPARATOR_KEY = 'default.separator';
|
||||
final public const SEPARATOR_KEY = 'default.separator';
|
||||
|
||||
/**
|
||||
* Show a mention "and children" on each SocialAction, if the social action
|
||||
* has at least one child.
|
||||
*/
|
||||
public const SHOW_AND_CHILDREN = 'show_and_children';
|
||||
final public const SHOW_AND_CHILDREN = 'show_and_children';
|
||||
|
||||
public function __construct(private TranslatableStringHelper $translatableStringHelper, private EngineInterface $engine, private TranslatorInterface $translator)
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper, private readonly EngineInterface $engine, private readonly TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -22,7 +22,7 @@ use function implode;
|
||||
/**
|
||||
* @implements ChillEntityRenderInterface<SocialIssue>
|
||||
*/
|
||||
final class SocialIssueRender implements ChillEntityRenderInterface
|
||||
final readonly class SocialIssueRender implements ChillEntityRenderInterface
|
||||
{
|
||||
public const AND_CHILDREN_MENTION = 'show_and_children_mention';
|
||||
|
||||
|
Reference in New Issue
Block a user