1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[feature/dic] Coding style: Braces

PHPBB3-10739
This commit is contained in:
Igor Wiedler
2012-08-25 16:43:41 +02:00
parent 7e44ca4d49
commit 4feb9aa8d7
5 changed files with 12 additions and 6 deletions

View File

@@ -52,7 +52,8 @@ class phpbb_di_processor_config implements phpbb_di_processor_interface
protected function fix_acm_type($acm_type)
{
if (preg_match('#^[a-z]+$#', $acm_type)) {
if (preg_match('#^[a-z]+$#', $acm_type))
{
return 'phpbb_cache_driver_'.$acm_type;
}

View File

@@ -31,8 +31,10 @@ class phpbb_di_processor_ext implements phpbb_di_processor_interface
public function process(ContainerBuilder $container)
{
$enabled_exts = $this->extension_manager->all_enabled();
foreach ($enabled_exts as $name => $path) {
if (file_exists($path . '/config/services.yml')) {
foreach ($enabled_exts as $name => $path)
{
if (file_exists($path . '/config/services.yml'))
{
$loader = new YamlFileLoader($container, new FileLocator($path . '/config'));
$loader->load('services.yml');
}