aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-08-25 16:43:41 +0200
committerIgor Wiedler <igor@wiedler.ch>2012-08-25 16:43:41 +0200
commit4feb9aa8d7bda303b62acec924008f75042eb757 (patch)
treef1f02fa2afeef9c001a78132423d68a3eae96b4c
parent7e44ca4d49a53b81ee1365282ae5f86cd32e7e4a (diff)
downloadforums-4feb9aa8d7bda303b62acec924008f75042eb757.tar
forums-4feb9aa8d7bda303b62acec924008f75042eb757.tar.gz
forums-4feb9aa8d7bda303b62acec924008f75042eb757.tar.bz2
forums-4feb9aa8d7bda303b62acec924008f75042eb757.tar.xz
forums-4feb9aa8d7bda303b62acec924008f75042eb757.zip
[feature/dic] Coding style: Braces
PHPBB3-10739
-rw-r--r--phpBB/common.php3
-rw-r--r--phpBB/download/file.php3
-rw-r--r--phpBB/includes/cron/task/provider.php3
-rw-r--r--phpBB/includes/di/processor/config.php3
-rw-r--r--phpBB/includes/di/processor/ext.php6
5 files changed, 12 insertions, 6 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index f958f06ce0..02dad17cf0 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -102,7 +102,8 @@ $phpbb_class_loader = $phpbb_container->get('class_loader');
$phpbb_class_loader_ext = $phpbb_container->get('class_loader.ext');
$ids = array_keys($phpbb_container->findTaggedServiceIds('container.processor'));
-foreach ($ids as $id) {
+foreach ($ids as $id)
+{
$processor = $phpbb_container->get($id);
$processor->process($phpbb_container);
}
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 656f1f38d6..8f84d92d07 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -62,7 +62,8 @@ if (isset($_GET['avatar']))
$phpbb_class_loader_ext = $phpbb_container->get('class_loader.ext');
$ids = array_keys($phpbb_container->findTaggedServiceIds('container.processor'));
- foreach ($ids as $id) {
+ foreach ($ids as $id)
+ {
$processor = $phpbb_container->get($id);
$processor->process($phpbb_container);
}
diff --git a/phpBB/includes/cron/task/provider.php b/phpBB/includes/cron/task/provider.php
index 6adac77eb8..134723ebd1 100644
--- a/phpBB/includes/cron/task/provider.php
+++ b/phpBB/includes/cron/task/provider.php
@@ -46,7 +46,8 @@ class phpbb_cron_task_provider implements IteratorAggregate
foreach ($definitions as $name => $definition)
{
$task = $this->container->get($name);
- if ($task instanceof phpbb_cron_task_base) {
+ if ($task instanceof phpbb_cron_task_base)
+ {
$task->set_name($name);
}
diff --git a/phpBB/includes/di/processor/config.php b/phpBB/includes/di/processor/config.php
index 45b750c31e..1a5ec15854 100644
--- a/phpBB/includes/di/processor/config.php
+++ b/phpBB/includes/di/processor/config.php
@@ -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;
}
diff --git a/phpBB/includes/di/processor/ext.php b/phpBB/includes/di/processor/ext.php
index b39ba5e686..04a586a086 100644
--- a/phpBB/includes/di/processor/ext.php
+++ b/phpBB/includes/di/processor/ext.php
@@ -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');
}