Run latest PHP-CS-Fixer with improved configuration

This commit is contained in:
Hugo Alliaume
2025-08-14 22:58:41 +02:00
parent b9fbd1fce0
commit f7a29fbff6
2 changed files with 6 additions and 6 deletions

View File

@@ -124,10 +124,10 @@ class StimulusLoaderJavaScriptCompiler implements AssetCompilerInterface
$isDebugString = $this->isDebug ? 'true' : 'false';
return <<<EOF
$importCode
export const eagerControllers = $eagerControllersJson;
export const lazyControllers = $lazyControllersExpression;
export const isApplicationDebug = $isDebugString;
EOF;
$importCode
export const eagerControllers = $eagerControllersJson;
export const lazyControllers = $lazyControllersExpression;
export const isApplicationDebug = $isDebugString;
EOF;
}
}

View File

@@ -151,7 +151,7 @@ final class UxControllersTwigRuntime implements RuntimeExtensionInterface
private function getJsDelivrUrl(string $package, ?string $version, string $file): string
{
$version = $version ?? 'latest';
$version ??= 'latest';
$package = str_replace('@', '', $package);
return \sprintf('https://cdn.jsdelivr.net/npm/%s@%s/%s', $package, $version, $file);