Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Aug 21, 2024
1 parent 2b04d55 commit 1c77b2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Command/ScaffoldAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/Command/ScaffoldCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1c77b2c

Please sign in to comment.