mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 10:29:42 +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:
@@ -20,7 +20,5 @@ namespace Chill\MainBundle\Service\ShortMessage;
|
||||
|
||||
class NullShortMessageSender implements ShortMessageSenderInterface
|
||||
{
|
||||
public function send(ShortMessage $shortMessage): void
|
||||
{
|
||||
}
|
||||
public function send(ShortMessage $shortMessage): void {}
|
||||
}
|
||||
|
@@ -26,9 +26,7 @@ class ShortMessage
|
||||
|
||||
final public const PRIORITY_MEDIUM = 'medium';
|
||||
|
||||
public function __construct(private string $content, private PhoneNumber $phoneNumber, private string $priority = 'low')
|
||||
{
|
||||
}
|
||||
public function __construct(private string $content, private PhoneNumber $phoneNumber, private string $priority = 'low') {}
|
||||
|
||||
public function getContent(): string
|
||||
{
|
||||
|
@@ -25,9 +25,7 @@ use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
|
||||
*/
|
||||
class ShortMessageHandler implements MessageHandlerInterface
|
||||
{
|
||||
public function __construct(private readonly ShortMessageTransporterInterface $messageTransporter)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly ShortMessageTransporterInterface $messageTransporter) {}
|
||||
|
||||
public function __invoke(ShortMessage $message): void
|
||||
{
|
||||
|
@@ -20,9 +20,7 @@ namespace Chill\MainBundle\Service\ShortMessage;
|
||||
|
||||
class ShortMessageTransporter implements ShortMessageTransporterInterface
|
||||
{
|
||||
public function __construct(private readonly ShortMessageSenderInterface $sender)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly ShortMessageSenderInterface $sender) {}
|
||||
|
||||
public function send(ShortMessage $shortMessage): void
|
||||
{
|
||||
|
Reference in New Issue
Block a user