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 5f11cc2 commit f556b1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Command/GenerateManifestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public function __construct(

protected function configure(): void
{
$this->addArgument('public_url', InputArgument::OPTIONAL, 'Public URL', '/pwa');
$this->addArgument('url_prefix', InputArgument::OPTIONAL, 'Public URL prefix', '');
$this->addArgument('public_folder', InputArgument::OPTIONAL, 'Public folder', $this->rootDir . '/public');
$this->addArgument('asset_folder', InputArgument::OPTIONAL, 'Asset folder', '/assets');
$this->addArgument('output', InputArgument::OPTIONAL, 'Output file', 'manifest.json');
$this->addArgument('asset_folder', InputArgument::OPTIONAL, 'Asset folder', '/pwa');
$this->addArgument('output', InputArgument::OPTIONAL, 'Output file', 'pwa.json');
}

protected function execute(InputInterface $input, OutputInterface $output): int
Expand All @@ -57,7 +57,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$manifest = $this->config;
$manifest = array_filter($manifest, static fn ($value) => ($value !== null && $value !== []));

$publicUrl = $input->getArgument('public_url');
$publicUrl = $input->getArgument('url_prefix');
$publicFolder = Path::canonicalize($input->getArgument('public_folder'));

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

View workflow job for this annotation

GitHub Actions / PHP 8.2 Test on ubuntu-latest

Parameter #1 $path of static method Symfony\Component\Filesystem\Path::canonicalize() expects string, mixed given.
$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.
Expand Down

0 comments on commit f556b1b

Please sign in to comment.