From 888eaf1b2f828b1ce89a37bc5903bc131d074ff9 Mon Sep 17 00:00:00 2001 From: Eriksen Costa Date: Mon, 25 Apr 2011 01:51:25 -0300 Subject: [PATCH] fixed typos and CS --- .../DependencyInjection/MonologExtension.php | 8 ++++---- .../DependencyInjection/Configuration.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php b/src/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php index 4d4c6966a4..106e8d6a49 100644 --- a/src/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php +++ b/src/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php @@ -3,7 +3,7 @@ /* * This file is part of the Symfony package. * - * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -49,7 +49,7 @@ class MonologExtension extends Extension $logger = $container->getDefinition('monolog.logger_prototype'); - if (!empty ($config['processors'])) { + if (!empty($config['processors'])) { $this->addProcessors($logger, $config['processors']); } @@ -190,10 +190,10 @@ class MonologExtension extends Extension break; } - if (!empty ($handler['formatter'])) { + if (!empty($handler['formatter'])) { $definition->addMethodCall('setFormatter', array(new Reference($handler['formatter']))); } - if (!empty ($handler['processors'])) { + if (!empty($handler['processors'])) { $this->addProcessors($definition, $handler['processors']); } $container->setDefinition($handlerId, $definition); diff --git a/src/Symfony/Bundle/SwiftmailerBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/SwiftmailerBundle/DependencyInjection/Configuration.php index ac2423ecb0..440b23e41a 100644 --- a/src/Symfony/Bundle/SwiftmailerBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/SwiftmailerBundle/DependencyInjection/Configuration.php @@ -52,7 +52,7 @@ class Configuration implements ConfigurationInterface ->scalarNode('transport') ->defaultValue('smtp') ->validate() - ->ifNotInArray(array ('smtp', 'mail', 'sendmail', 'gmail', null)) + ->ifNotInArray(array('smtp', 'mail', 'sendmail', 'gmail', null)) ->thenInvalid('The %s transport is not supported') ->end() ->end() @@ -63,14 +63,14 @@ class Configuration implements ConfigurationInterface ->scalarNode('encryption') ->defaultNull() ->validate() - ->ifNotInArray(array ('tls', 'ssl', null)) + ->ifNotInArray(array('tls', 'ssl', null)) ->thenInvalid('The %s encryption is not supported') ->end() ->end() ->scalarNode('auth_mode') ->defaultNull() ->validate() - ->ifNotInArray(array ('plain', 'login', 'cram-md5', null)) + ->ifNotInArray(array('plain', 'login', 'cram-md5', null)) ->thenInvalid('The %s authentication mode is not supported') ->end() ->end()