mirror of
https://github.com/symfony/stimulus-bundle.git
synced 2026-03-24 01:12:07 +01:00
Run latest PHP-CS-Fixer with improved configuration
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user