src/Extensions/Config/HttpClientRetrySection.php
Method getConfigNode
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getConfigNode(): ArrayNodeDefinition
{
$root = new NodeBuilder();
return $root
Consider simplifying this complex logical expression. Open
Open
if (isset($v['retry_strategy']) && (isset($v['http_codes']) || isset($v['delay']) || isset($v['multiplier']) || isset($v['max_delay']) || isset($v['jitter']))) {
throw new \InvalidArgumentException('The "retry_strategy" option cannot be used along with the "http_codes", "delay", "multiplier", "max_delay" or "jitter" options.');
}