Skip to content

Commit 114e601

Browse files
committed
minor #1550 [CS] Minor CS fixes (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [CS] Minor CS fixes Commits ------- 3378c06 [CS] Minor CS fixes
2 parents 9c7a811 + 3378c06 commit 114e601

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/LiveComponent/src/Twig/TemplateCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function warmUp(string $cacheDir, ?string $buildDir = null): array
3636
$map[hash('xxh128', $item.$this->secret)] = $item;
3737
}
3838

39-
$cacheFile = sprintf('%s%s%s', $buildDir ?? $cacheDir, DIRECTORY_SEPARATOR, $this->cacheFilename);
39+
$cacheFile = sprintf('%s%s%s', $buildDir ?? $cacheDir, \DIRECTORY_SEPARATOR, $this->cacheFilename);
4040
PhpArrayAdapter::create($cacheFile, new NullAdapter())->warmUp(['map' => $map]);
4141

4242
return [];

ux.symfony.com/src/LiveMemory/Asset/CssCompiler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Filesystem\Path;
1818

1919
/**
20-
* Experimental CSS compiler
20+
* Experimental CSS compiler.
2121
*
2222
* This compiler combines all the SCSS files imported in `live-memory.min.css`
2323
* into a single CSS file, and removes SASS comments and empty lines.
@@ -34,7 +34,6 @@ public function supports(MappedAsset $asset): bool
3434
public function compile(string $content, MappedAsset $asset, AssetMapperInterface $assetMapper): string
3535
{
3636
return preg_replace_callback('#@import (?:"|\')(.*)(?:\'|");#m', function ($matches) use ($asset) {
37-
3837
$file = $matches[1];
3938
$file = substr_replace($file, '/_', strrpos($file, '/'), 1);
4039
$file = './'.$file.'.scss';

0 commit comments

Comments
 (0)