8000 simplified conditions · symfony/symfony@d664d2c · GitHub
[go: up one dir, main page]

Skip to content

Commit d664d2c

Browse files
committed
simplified conditions
1 parent f5e1e93 commit d664d2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getConfigTreeBuilder()
5454
->end()
5555
;
5656

57-
if (class_exists(HtmlDumper::class) && method_exists(HtmlDumper::class, 'setTheme')) {
57+
if (method_exists(HtmlDumper::class, 'setTheme')) {
5858
$rootNode
5959
->children()
6060
->enumNode('theme')

src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function load(array $configs, ContainerBuilder $container)
4343
->addMethodCall('setMinDepth', array($config['min_depth']))
4444
->addMethodCall('setMaxString', array($config['max_string_length']));
4545

46-
if (class_exists(HtmlDumper::class) && method_exists(HtmlDumper::class, 'setTheme')) {
46+
if (method_exists(HtmlDumper::class, 'setTheme') && 'dark' !== $config['theme']) {
4747
$container->getDefinition('var_dumper.html_dumper')
4848
->addMethodCall('setTheme', array($config['theme']));
4949
}

0 commit comments

Comments
 (0)
0