fixed typos and CS

This commit is contained in:
Eriksen Costa 2011-04-25 01:51:25 -03:00
parent 59c6609aec
commit 888eaf1b2f
2 changed files with 7 additions and 7 deletions

View File

@ -3,7 +3,7 @@
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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);

View File

@ -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()