biurad/flange

View on GitHub
src/Extensions/Config/HttpClientRetrySection.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method getConfigNode has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function getConfigNode(): ArrayNodeDefinition
    {
        $root = new NodeBuilder();

        return $root
Severity: Major
Found in src/Extensions/Config/HttpClientRetrySection.php - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    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.');
                            }
    Severity: Major
    Found in src/Extensions/Config/HttpClientRetrySection.php - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status