Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55161ec

Browse files
committed
Fix polyFill -> polyfill
1 parent 04bfc6c commit 55161ec

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Symfony/Component/AssetMapper/ImportMap/ImportMapRenderer.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function render(string|array $entryPoint, array $attributes = []): string
4949
$importMap = [];
5050
$modulePreloads = [];
5151
$cssLinks = [];
52-
$polyFillPath = null;
52+
$polyfillPath = null;
5353
foreach ($importMapData as $importName => $data) {
5454
$path = $data['path'];
5555

@@ -60,7 +60,7 @@ public function render(string|array $entryPoint, array $attributes = []): string
6060

6161
// if this represents the polyfill, hide it from the import map
6262
if ($importName === $this->polyfillImportName) {
63-
$polyFillPath = $path;
63+
$polyfillPath = $path;
6464
continue;
6565
}
6666

@@ -104,21 +104,21 @@ public function render(string|array $entryPoint, array $attributes = []): string
104104
</script>
105105
HTML;
106106

107-
if (false !== $this->polyfillImportName && null === $polyFillPath) {
107+
if (false !== $this->polyfillImportName && null === $polyfillPath) {
108108
if ('es-module-shims' !== $this->polyfillImportName) {
109109
throw new \InvalidArgumentException(sprintf('The JavaScript module polyfill was not found in your import map. Either disable the polyfill or run "php bin/console importmap:require "%s"" to install it.', $this->polyfillImportName));
110110
}
111111

112112
// a fallback for the default polyfill in case it's not in the importmap
113-
$polyFillPath = self::DEFAULT_ES_MODULE_SHIMS_POLYFILL_URL;
113+
$polyfillPath = self::DEFAULT_ES_MODULE_SHIMS_POLYFILL_URL;
114114
}
115115

116-
if ($polyFillPath) {
117-
$url = $this->escapeAttributeValue($polyFillPath);
116+
if ($polyfillPath) {
117+
$url = $this->escapeAttributeValue($polyfillPath);
118118
$polyfillAttributes = $scriptAttributes;
119119

120120
// Add security attributes for the default polyfill hosted on jspm.io
121-
if (self::DEFAULT_ES_MODULE_SHIMS_POLYFILL_URL === $polyFillPath) {
121+
if (self::DEFAULT_ES_MODULE_SHIMS_POLYFILL_URL === $polyfillPath) {
122122
$polyfillAttributes = $this->createAttributesString([
123123
'crossorigin' => 'anonymous',
124124
'integrity' => self::DEFAULT_ES_MODULE_SHIMS_POLYFILL_INTEGRITY,

0 commit comments

Comments
 (0)