@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | $channels = $container->getParameter('ekino.new_relic.monolog.channels'); |
18 | 18 | foreach ($channels as $channel) { |
19 | - $def = $container->getDefinition($channel === 'app' ? 'monolog.logger' : 'monolog.logger.'.$channel); |
|
19 | + $def = $container->getDefinition($channel === 'app' ? 'monolog.logger' : 'monolog.logger.' . $channel); |
|
20 | 20 | $def->addMethodCall('pushHandler', array(new Reference('ekino.new_relic.logs_handler'))); |
21 | 21 | } |
22 | 22 | } |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | ->prototype('scalar') |
40 | 40 | ->end() |
41 | 41 | ->beforeNormalization() |
42 | - ->ifTrue(function ($v) { return !is_array($v); }) |
|
43 | - ->then(function ($v) { return array_values(array_filter(explode(';', $v))); }) |
|
42 | + ->ifTrue(function($v) { return !is_array($v); }) |
|
43 | + ->then(function($v) { return array_values(array_filter(explode(';', $v))); }) |
|
44 | 44 | ->end() |
45 | 45 | ->end() |
46 | 46 | ->scalarNode('xmit')->defaultValue(false)->end() |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | ->prototype('scalar') |
59 | 59 | ->end() |
60 | 60 | ->beforeNormalization() |
61 | - ->ifTrue(function ($v) { return !is_array($v); }) |
|
62 | - ->then(function ($v) { return (array) $v; }) |
|
61 | + ->ifTrue(function($v) { return !is_array($v); }) |
|
62 | + ->then(function($v) { return (array) $v; }) |
|
63 | 63 | ->end() |
64 | 64 | ->end() |
65 | 65 | ->end() |
@@ -82,16 +82,16 @@ discard block |
||
82 | 82 | ->prototype('scalar') |
83 | 83 | ->end() |
84 | 84 | ->beforeNormalization() |
85 | - ->ifTrue(function ($v) { return !is_array($v); }) |
|
86 | - ->then(function ($v) { return (array) $v; }) |
|
85 | + ->ifTrue(function($v) { return !is_array($v); }) |
|
86 | + ->then(function($v) { return (array) $v; }) |
|
87 | 87 | ->end() |
88 | 88 | ->end() |
89 | 89 | ->arrayNode('ignored_paths') |
90 | 90 | ->prototype('scalar') |
91 | 91 | ->end() |
92 | 92 | ->beforeNormalization() |
93 | - ->ifTrue(function ($v) { return !is_array($v); }) |
|
94 | - ->then(function ($v) { return (array) $v; }) |
|
93 | + ->ifTrue(function($v) { return !is_array($v); }) |
|
94 | + ->then(function($v) { return (array) $v; }) |
|
95 | 95 | ->end() |
96 | 96 | ->end() |
97 | 97 | ->scalarNode('using_symfony_cache')->defaultFalse()->end() |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $configuration = new Configuration(); |
33 | 33 | $config = $this->processConfiguration($configuration, $configs); |
34 | 34 | |
35 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
35 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
36 | 36 | $loader->load('services.xml'); |
37 | 37 | |
38 | 38 | if (!$config['enabled']) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | $level = $config['monolog']['level']; |
110 | 110 | $container->findDefinition('ekino.new_relic.logs_handler') |
111 | - ->replaceArgument(0, is_int($level) ? $level : constant('Monolog\Logger::'.strtoupper($level))) |
|
111 | + ->replaceArgument(0, is_int($level) ? $level : constant('Monolog\Logger::' . strtoupper($level))) |
|
112 | 112 | ->replaceArgument(2, $config['application_name']); |
113 | 113 | } |
114 | 114 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $this->assertEquals(array('/ignored/path1', '/ignored/path2'), $ignoredPathsNode->merge(array('/ignored/path1'), array('/ignored/path2'))); |
50 | 50 | } |
51 | 51 | |
52 | - public function testIgnoredCommands () |
|
52 | + public function testIgnoredCommands() |
|
53 | 53 | { |
54 | 54 | $configuration = new Configuration(); |
55 | 55 | $rootNode = $configuration->getConfigTreeBuilder() |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $this->assertInternalType('array', $config['deployment_names']); |
86 | 86 | } |
87 | 87 | |
88 | - public static function ignoredRoutesProvider () |
|
88 | + public static function ignoredRoutesProvider() |
|
89 | 89 | { |
90 | 90 | return array( |
91 | 91 | array('single_ignored_route', array('single_ignored_route')), |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | ); |
95 | 95 | } |
96 | 96 | |
97 | - public static function ignoredPathsProvider () |
|
97 | + public static function ignoredPathsProvider() |
|
98 | 98 | { |
99 | 99 | return array( |
100 | 100 | array('/single/ignored/path', array('/single/ignored/path')), |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | ); |
104 | 104 | } |
105 | 105 | |
106 | - public static function ignoredCommandsProvider () |
|
106 | + public static function ignoredCommandsProvider() |
|
107 | 107 | { |
108 | 108 | return array( |
109 | 109 | array('single:ignored:command', array('single:ignored:command')), |