Skip to content

Commit

Permalink
[CS] Aligned code style with the updated rules
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Jan 31, 2024
1 parent 22a0184 commit 4828a88
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions bundle/DependencyInjection/Compiler/AssetThemePass.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ public function process(ContainerBuilder $container)
}

$themesList = $container->getParameter('ezdesign.themes_list');
$container->setParameter('ezdesign.themes_list', array_unique(
array_merge($themesList, array_keys($themesPathMap)))
$container->setParameter(
'ezdesign.themes_list',
array_unique(
array_merge($themesList, array_keys($themesPathMap))
)
);
$container->setParameter('ezdesign.assets_path_map', $pathsByDesign);
$container->findDefinition('ezdesign.asset_path_resolver')
Expand Down
7 changes: 5 additions & 2 deletions bundle/DependencyInjection/Compiler/TwigThemePass.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ public function process(ContainerBuilder $container)
}

$themesList = $container->getParameter('ezdesign.themes_list');
$container->setParameter('ezdesign.themes_list', array_unique(
array_merge($themesList, array_keys($themesPathMap)))
$container->setParameter(
'ezdesign.themes_list',
array_unique(
array_merge($themesList, array_keys($themesPathMap))
)
);
$container->setParameter('ezdesign.templates_path_map', $themesPathMap);

Expand Down
2 changes: 1 addition & 1 deletion lib/Templating/TemplateNameResolverInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
interface TemplateNameResolverInterface
{
const EZ_DESIGN_NAMESPACE = 'ezdesign';
public const EZ_DESIGN_NAMESPACE = 'ezdesign';

/**
* Resolves provided template name within current design and returns properly namespaced template name.
Expand Down

0 comments on commit 4828a88

Please sign in to comment.