From 1c77b2c7462f67d1cafcbc694cac747127f3bbef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Guti=C3=A9rrez?= Date: Wed, 21 Aug 2024 13:07:28 +0200 Subject: [PATCH] fix cs --- src/Command/ScaffoldAllCommand.php | 4 ++-- src/Command/ScaffoldCommand.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Command/ScaffoldAllCommand.php b/src/Command/ScaffoldAllCommand.php index ec18ab2..a0d632a 100644 --- a/src/Command/ScaffoldAllCommand.php +++ b/src/Command/ScaffoldAllCommand.php @@ -60,7 +60,7 @@ public function execute(InputInterface $input, OutputInterface $output): int $destinationDir = getcwd() . '/' . $directory; $this->removeDirectory($destinationDir); if (!mkdir($destinationDir, 0o755, true) && !is_dir($destinationDir)) { - $ioStyle->error(sprintf('Not possible to create "%s" directory', $destinationDir)); + $ioStyle->error(\sprintf('Not possible to create "%s" directory', $destinationDir)); $ioStyle->newLine(); return self::FAILURE; @@ -105,7 +105,7 @@ final protected function removeDirectory(string $directory): void } if (!is_dir($directory)) { - throw new RuntimeException(sprintf('"%s" is not a directory.', $directory)); + throw new RuntimeException(\sprintf('"%s" is not a directory.', $directory)); } $this->recursiveRemove($directory); diff --git a/src/Command/ScaffoldCommand.php b/src/Command/ScaffoldCommand.php index b6fe3a2..e4ee2d5 100644 --- a/src/Command/ScaffoldCommand.php +++ b/src/Command/ScaffoldCommand.php @@ -121,7 +121,7 @@ public function execute(InputInterface $input, OutputInterface $output): int $variant = $input->getArgument('variant'); $this->assertStringType($variant); if (!\array_key_exists($variant, $versions)) { - $ioStyle->error(sprintf('Variant "%s" does not exist', $variant)); + $ioStyle->error(\sprintf('Variant "%s" does not exist', $variant)); $ioStyle->newLine(); return self::FAILURE; @@ -130,7 +130,7 @@ public function execute(InputInterface $input, OutputInterface $output): int $version = $input->getArgument('version'); $this->assertStringType($version); if (!\array_key_exists($version, $versions[$variant])) { - $ioStyle->error(sprintf('Version "%s" does not exist', $version)); + $ioStyle->error(\sprintf('Version "%s" does not exist', $version)); $ioStyle->newLine(); return self::FAILURE; @@ -141,7 +141,7 @@ public function execute(InputInterface $input, OutputInterface $output): int $destinationDir = getcwd() . '/' . rtrim($directory, \DIRECTORY_SEPARATOR); $this->removeDirectory($destinationDir); if (!mkdir($destinationDir, 0o755, true) && !is_dir($destinationDir)) { - $ioStyle->error(sprintf('Not possible to create "%s" directory', $destinationDir)); + $ioStyle->error(\sprintf('Not possible to create "%s" directory', $destinationDir)); $ioStyle->newLine(); return self::FAILURE;