diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
index be16f0322eea4..f432acc81074a 100644
--- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
+++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
@@ -382,9 +382,9 @@ protected function loadCacheDriver($cacheName, $objectManagerName, array $cacheD
if (!isset($cacheDriver['namespace'])) {
// generate a unique namespace for the given application
- $env = $container->getParameter('kernel.root_dir').$container->getParameter('kernel.environment');
- $hash = hash('sha256', $env);
- $namespace = 'sf2'.$this->getMappingResourceExtension().'_'.$objectManagerName.'_'.$hash;
+ $env = $container->getParameter('kernel.root_dir').$container->getParameter('kernel.environment');
+ $hash = hash('sha256', $env);
+ $namespace = 'sf2'.$this->getMappingResourceExtension().'_'.$objectManagerName.'_'.$hash;
$cacheDriver['namespace'] = $namespace;
}
diff --git a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php
index e1ba1b02229f0..54595899587f5 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php
@@ -192,10 +192,10 @@ public function providerBasicDrivers()
*/
public function testLoadBasicCacheDriver($class, array $config, array $expectedCalls = array())
{
- $container = $this->createContainer();
- $cacheName = 'metadata_cache';
- $objectManager = array(
- 'name' => 'default',
+ $container = $this->createContainer();
+ $cacheName = 'metadata_cache';
+ $objectManager = array(
+ 'name' => 'default',
'metadata_cache_driver' => $config,
);
@@ -203,10 +203,10 @@ public function testLoadBasicCacheDriver($class, array $config, array $expectedC
$this->assertTrue($container->hasDefinition('doctrine.orm.default_metadata_cache'));
- $definition = $container->getDefinition('doctrine.orm.default_metadata_cache');
- $defCalls = $definition->getMethodCalls();
+ $definition = $container->getDefinition('doctrine.orm.default_metadata_cache');
+ $defCalls = $definition->getMethodCalls();
$expectedCalls[] = 'setNamespace';
- $actualCalls = array_map(function ($call) {
+ $actualCalls = array_map(function ($call) {
return $call[0];
}, $defCalls);
@@ -220,14 +220,14 @@ public function testLoadBasicCacheDriver($class, array $config, array $expectedC
public function testServiceCacheDriver()
{
- $cacheName = 'metadata_cache';
- $container = $this->createContainer();
- $definition = new Definition('%doctrine.orm.cache.apc.class%');
- $objectManager = array(
- 'name' => 'default',
+ $cacheName = 'metadata_cache';
+ $container = $this->createContainer();
+ $definition = new Definition('%doctrine.orm.cache.apc.class%');
+ $objectManager = array(
+ 'name' => 'default',
'metadata_cache_driver' => array(
'type' => 'service',
- 'id' => 'service_driver',
+ 'id' => 'service_driver',
),
);
@@ -244,10 +244,10 @@ public function testServiceCacheDriver()
*/
public function testUnrecognizedCacheDriverException()
{
- $cacheName = 'metadata_cache';
- $container = $this->createContainer();
- $objectManager = array(
- 'name' => 'default',
+ $cacheName = 'metadata_cache';
+ $container = $this->createContainer();
+ $objectManager = array(
+ 'name' => 'default',
'metadata_cache_driver' => array(
'type' => 'unrecognized_type',
),
@@ -273,12 +273,12 @@ protected function invokeLoadCacheDriver(array $objectManager, ContainerBuilder
protected function createContainer(array $data = array())
{
return new ContainerBuilder(new ParameterBag(array_merge(array(
- 'kernel.bundles' => array('FrameworkBundle' => 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle'),
- 'kernel.cache_dir' => __DIR__,
- 'kernel.debug' => false,
+ 'kernel.bundles' => array('FrameworkBundle' => 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle'),
+ 'kernel.cache_dir' => __DIR__,
+ 'kernel.debug' => false,
'kernel.environment' => 'test',
- 'kernel.name' => 'kernel',
- 'kernel.root_dir' => __DIR__,
+ 'kernel.name' => 'kernel',
+ 'kernel.root_dir' => __DIR__,
), $data)));
}
}
diff --git a/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php b/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php
index 4256df1882997..1af93bc97aebe 100644
--- a/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php
+++ b/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php
@@ -38,16 +38,16 @@ public function format(array $record)
{
if ($record['level'] >= Logger::ERROR) {
$record['start_tag'] = '