[DependencyInjection] fixed CS
This commit is contained in:
parent
cd0a9d7a1d
commit
3827e3ed1e
@ -201,7 +201,7 @@ class PhpDumper extends Dumper
|
|||||||
$nbOccurrences->offsetSet($definition, 1);
|
$nbOccurrences->offsetSet($definition, 1);
|
||||||
} else {
|
} else {
|
||||||
$i = $nbOccurrences->offsetGet($definition);
|
$i = $nbOccurrences->offsetGet($definition);
|
||||||
$nbOccurrences->offsetSet($definition, $i+1);
|
$nbOccurrences->offsetSet($definition, $i + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ class PhpDumper extends Dumper
|
|||||||
$processed->offsetSet($sDefinition);
|
$processed->offsetSet($sDefinition);
|
||||||
|
|
||||||
$class = $this->dumpValue($sDefinition->getClass());
|
$class = $this->dumpValue($sDefinition->getClass());
|
||||||
if ($nbOccurrences->offsetGet($sDefinition) > 1 || count($sDefinition->getMethodCalls()) > 0 || $sDefinition->getProperties() || null !== $sDefinition->getConfigurator() || false !== strpos($class, '$')) {
|
if ($nbOccurrences->offsetGet($sDefinition) > 1 || $sDefinition->getMethodCalls() || $sDefinition->getProperties() || null !== $sDefinition->getConfigurator() || false !== strpos($class, '$')) {
|
||||||
$name = $this->getNextVariableName();
|
$name = $this->getNextVariableName();
|
||||||
$variableMap->offsetSet($sDefinition, new Variable($name));
|
$variableMap->offsetSet($sDefinition, new Variable($name));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user