mirror of
https://github.com/symfony/ux-svelte.git
synced 2026-03-24 00:12:07 +01:00
Run PHP-CS-Fixer (no_useless_else & static_lambda)
This commit is contained in:
@@ -27,7 +27,7 @@ class SvelteControllerLoaderAssetCompilerTest extends TestCase
|
||||
$this->equalTo(realpath(__DIR__.'/../fixtures/svelte/controllers/MySvelteController.js')),
|
||||
$this->equalTo(realpath(__DIR__.'/../fixtures/svelte/controllers/subdir/DeeperSvelteController.js')),
|
||||
))
|
||||
->willReturnCallback(function ($sourcePath) {
|
||||
->willReturnCallback(static function ($sourcePath) {
|
||||
if (str_contains($sourcePath, 'MySvelteController')) {
|
||||
return new MappedAsset(
|
||||
'MySvelteController.js',
|
||||
|
||||
@@ -34,7 +34,7 @@ class TwigAppKernel extends Kernel
|
||||
|
||||
public function registerContainerConfiguration(LoaderInterface $loader): void
|
||||
{
|
||||
$loader->load(function (ContainerBuilder $container) {
|
||||
$loader->load(static function (ContainerBuilder $container) {
|
||||
$container->loadFromExtension('framework', [
|
||||
'secret' => '$ecret',
|
||||
'test' => true,
|
||||
|
||||
Reference in New Issue
Block a user