Total Complexity | 7 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 17.65% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class Http |
||
14 | { |
||
15 | /** |
||
16 | * @param StrategyInterface|null $strategy |
||
17 | */ |
||
18 | 1 | public function __construct(private null|StrategyInterface $strategy = null) |
|
19 | { |
||
20 | 1 | if (!$this->strategy) { |
|
21 | 1 | $this->strategy = new GuzzleStrategy(); |
|
22 | } |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param StrategyInterface $strategy |
||
27 | * @return $this |
||
28 | */ |
||
29 | public function setStrategy(StrategyInterface $strategy): Http |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $url |
||
38 | * @return stdClass |
||
39 | * @throws HttpException |
||
40 | */ |
||
41 | public function sendRequest(string $url): stdClass |
||
63 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.