| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4.0218 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 5 | public function reset(): void |
|
| 26 | { |
||
| 27 | 5 | foreach ($this->resetters as $resetter) { |
|
| 28 | 5 | if ($resetter instanceof StateResetterInterface) { |
|
| 29 | 3 | $resetter->reset(); |
|
| 30 | 3 | continue; |
|
| 31 | } |
||
| 32 | 5 | if ($this->container !== null) { |
|
| 33 | 5 | $resetter($this->container); |
|
| 34 | 5 | continue; |
|
| 35 | } |
||
| 36 | $resetter(); |
||
| 37 | } |
||
| 48 |
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.