Skip to content

Commit 706daf4

Browse files
committed
fixed CS
1 parent c136d5b commit 706daf4

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

DependencyInjection/Compiler/DebugHandlerPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Bundle\MonologBundle\DependencyInjection\Compiler;
1313

14-
1514
use Symfony\Component\DependencyInjection\Reference;
1615
use Symfony\Component\DependencyInjection\ContainerBuilder;
1716
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;

Tests/DependencyInjection/Compiler/AddProcessorsPassTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ protected function getContainer()
4242
$loader->load('monolog.xml');
4343

4444
$definition = $container->getDefinition('monolog.logger_prototype');
45-
$container->setDefinition('monolog.handler.test', new Definition('%monolog.handler.null.class%', array (100, false)));
46-
$container->setDefinition('handler_test', new Definition('%monolog.handler.null.class%', array (100, false)));
45+
$container->setDefinition('monolog.handler.test', new Definition('%monolog.handler.null.class%', array(100, false)));
46+
$container->setDefinition('handler_test', new Definition('%monolog.handler.null.class%', array(100, false)));
4747
$container->setAlias('monolog.handler.test2', 'handler_test');
4848
$definition->addMethodCall('pushHandler', array(new Reference('monolog.handler.test')));
4949
$definition->addMethodCall('pushHandler', array(new Reference('monolog.handler.test2')));
5050

5151
$service = new Definition('TestClass', array('false', new Reference('logger')));
52-
$service->addTag('monolog.processor', array ('handler' => 'test'));
52+
$service->addTag('monolog.processor', array('handler' => 'test'));
5353
$container->setDefinition('test', $service);
5454

5555
$service = new Definition('TestClass', array('false', new Reference('logger')));
56-
$service->addTag('monolog.processor', array ('handler' => 'test2'));
56+
$service->addTag('monolog.processor', array('handler' => 'test2'));
5757
$container->setDefinition('test2', $service);
5858

5959
$container->getCompilerPassConfig()->setOptimizationPasses(array());

Tests/DependencyInjection/Compiler/LoggerChannelPassTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ protected function getContainer()
6868
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../../Resources/config'));
6969
$loader->load('monolog.xml');
7070
$definition = $container->getDefinition('monolog.logger_prototype');
71-
$container->set('monolog.handler.test', new Definition('%monolog.handler.null.class%', array (100, false)));
71+
$container->set('monolog.handler.test', new Definition('%monolog.handler.null.class%', array(100, false)));
7272
$definition->addMethodCall('pushHandler', array(new Reference('monolog.handler.test')));
7373

7474
// Handlers
75-
$container->set('monolog.handler.a', new Definition('%monolog.handler.null.class%', array (100, false)));
76-
$container->set('monolog.handler.b', new Definition('%monolog.handler.null.class%', array (100, false)));
77-
$container->set('monolog.handler.c', new Definition('%monolog.handler.null.class%', array (100, false)));
75+
$container->set('monolog.handler.a', new Definition('%monolog.handler.null.class%', array(100, false)));
76+
$container->set('monolog.handler.b', new Definition('%monolog.handler.null.class%', array(100, false)));
77+
$container->set('monolog.handler.c', new Definition('%monolog.handler.null.class%', array(100, false)));
7878

7979
// Channels
8080
foreach (array('test', 'foo', 'bar') as $name) {
8181
$service = new Definition('TestClass', array('false', new Reference('logger')));
82-
$service->addTag('monolog.logger', array ('channel' => $name));
82+
$service->addTag('monolog.logger', array('channel' => $name));
8383
$container->setDefinition($name, $service);
8484
}
8585

@@ -110,12 +110,12 @@ protected function getContainerWithSetter()
110110
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../../Resources/config'));
111111
$loader->load('monolog.xml');
112112
$definition = $container->getDefinition('monolog.logger_prototype');
113-
$container->set('monolog.handler.test', new Definition('%monolog.handler.null.class%', array (100, false)));
113+
$container->set('monolog.handler.test', new Definition('%monolog.handler.null.class%', array(100, false)));
114114
$definition->addMethodCall('pushHandler', array(new Reference('monolog.handler.test')));
115115

116116
// Channels
117117
$service = new Definition('TestClass');
118-
$service->addTag('monolog.logger', array ('channel' => 'test'));
118+
$service->addTag('monolog.logger', array('channel' => 'test'));
119119
$service->addMethodCall('setLogger', array(new Reference('logger')));
120120
$container->setDefinition('foo', $service);
121121

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ public function testWithSwiftMailerHandler()
218218
$this->assertEquals('mailer', $config['handlers']['swift']['mailer']);
219219
}
220220

221-
public function testWithElasticsearchHandler() {
221+
public function testWithElasticsearchHandler()
222+
{
222223
$configs = array(
223224
array(
224225
'handlers' => array(
@@ -240,7 +241,6 @@ public function testWithElasticsearchHandler() {
240241
$this->assertEquals(true, $config['handlers']['elasticsearch']['ignore_error']);
241242
$this->assertEquals('my-record', $config['handlers']['elasticsearch']['document_type']);
242243
$this->assertEquals('my-index', $config['handlers']['elasticsearch']['index']);
243-
244244
}
245245

246246
public function testWithConsoleHandler()

Tests/DependencyInjection/FixtureMonologExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function testMultipleEmailRecipients()
174174
{
175175
$container = $this->getContainer('multiple_email_recipients');
176176

177-
$this->assertEquals (array(
177+
$this->assertEquals(array(
178178
new Reference('mailer'),
179179
'error@example.com',
180180
array('dev1@example.com', 'dev2@example.com'),

0 commit comments

Comments
 (0)