Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Dec 17, 2023
1 parent f556b1b commit aeea660
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Command/GenerateManifestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$assetFolder = '/' . trim((string) $input->getArgument('asset_folder'), '/');

Check failure on line 62 in src/Command/GenerateManifestCommand.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 Test on ubuntu-latest

Cannot cast mixed to string.
$outputFile = '/' . trim((string) $input->getArgument('output'), '/');

Check failure on line 63 in src/Command/GenerateManifestCommand.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 Test on ubuntu-latest

Cannot cast mixed to string.

$this->createDirectory($publicFolder);
$this->filesystem->mkdir($publicFolder);

$manifest = $this->processIcons($io, $manifest, $publicUrl, $publicFolder, $assetFolder);
if ($manifest === self::FAILURE) {
Expand Down Expand Up @@ -92,14 +92,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return self::SUCCESS;
}

private function createDirectory(string $folderPath): void
{
if ($this->filesystem->exists($folderPath)) {
$this->filesystem->remove($folderPath);
}
$this->filesystem->mkdir($folderPath);
}

/**
* @param array<string|null> $components
* @return array{src: string, type: string}
Expand Down

0 comments on commit aeea660

Please sign in to comment.