@@ -25,16 +25,16 @@ public function __construct(private readonly Connection $connection)
2525 public function execute (InputInterface $ input , OutputInterface $ output ): int
2626 {
2727 $ directory = $ input ->getArgument ('directory ' );
28- if (!is_string ($ directory )) {
28+ if (!\ is_string ($ directory )) {
2929 throw new \RuntimeException ('Directory is not a string ' );
3030 }
3131
3232 $ query = <<<'SQL'
33- SELECT
34- mail_template_translation.content_plain,
35- mail_template_translation.content_html,
36- mail_template_translation.subject,
37- mail_template_type.technical_name,
33+ SELECT
34+ mail_template_translation.content_plain,
35+ mail_template_translation.content_html,
36+ mail_template_translation.subject,
37+ mail_template_type.technical_name,
3838 mail_template.id,
3939 locale.code AS locale
4040FROM mail_template_translation
@@ -49,7 +49,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
4949
5050 /** @var array{content_plain: string, content_html: string, subject: string, technical_name: string, id: string, locale: string} $record */
5151 foreach ($ records as $ record ) {
52- $ templateDir = sprintf ('%s/%s/%s ' , $ directory , $ record ['locale ' ], $ record ['technical_name ' ]);
52+ $ templateDir = \ sprintf ('%s/%s/%s ' , $ directory , $ record ['locale ' ], $ record ['technical_name ' ]);
5353
5454 $ map = [
5555 'content_plain ' => 'plain ' ,
@@ -58,9 +58,9 @@ public function execute(InputInterface $input, OutputInterface $output): int
5858 ];
5959 foreach ($ map as $ field => $ name ) {
6060 if ($ input ->getOption ('template-id ' )) {
61- $ targetFile = sprintf ('%s/%s/%s.twig ' , $ templateDir , Uuid::fromBytesToHex ($ record ['id ' ]), $ name );
61+ $ targetFile = \ sprintf ('%s/%s/%s.twig ' , $ templateDir , Uuid::fromBytesToHex ($ record ['id ' ]), $ name );
6262 } else {
63- $ targetFile = sprintf ('%s/%s.twig ' , $ templateDir , $ name );
63+ $ targetFile = \ sprintf ('%s/%s.twig ' , $ templateDir , $ name );
6464 }
6565
6666 $ fs ->dumpFile ($ targetFile , $ record [$ field ]);
0 commit comments