Skip to content

Commit

Permalink
ternary operator style change
Browse files Browse the repository at this point in the history
  • Loading branch information
sadikoff committed Dec 31, 2018
1 parent b5528da commit b86ada9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DependencyInjection/Configuration.php
Expand Up @@ -21,7 +21,9 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('i18n_form');
$rootNode = method_exists($treeBuilder, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('i18n_form');
$rootNode = method_exists($treeBuilder, 'getRootNode')
? $treeBuilder->getRootNode()
: $treeBuilder->root('i18n_form');

$this->convertStringToArray = function ($v) {
return preg_split('/\s*[,|]\s*/', $v);
Expand Down

0 comments on commit b86ada9

Please sign in to comment.