Skip to content

[CS] Minor CS fixes #1550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/LiveComponent/src/Twig/TemplateCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function warmUp(string $cacheDir, ?string $buildDir = null): array
$map[hash('xxh128', $item.$this->secret)] = $item;
}

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

return [];
Expand Down
3 changes: 1 addition & 2 deletions ux.symfony.com/src/LiveMemory/Asset/CssCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\Filesystem\Path;

/**
* Experimental CSS compiler
* Experimental CSS compiler.
*
* This compiler combines all the SCSS files imported in `live-memory.min.css`
* into a single CSS file, and removes SASS comments and empty lines.
Expand All @@ -34,7 +34,6 @@ public function supports(MappedAsset $asset): bool
public function compile(string $content, MappedAsset $asset, AssetMapperInterface $assetMapper): string
{
return preg_replace_callback('#@import (?:"|\')(.*)(?:\'|");#m', function ($matches) use ($asset) {

$file = $matches[1];
$file = substr_replace($file, '/_', strrpos($file, '/'), 1);
$file = './'.$file.'.scss';
Expand Down