| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function server() : string |
||
| 25 | { |
||
| 26 | if ($this->server) { |
||
| 27 | return $this->server; |
||
| 28 | } |
||
| 29 | |||
| 30 | switch (count($servers = $this->servers())) { |
||
|
|
|||
| 31 | case 0: |
||
| 32 | throw new UnknownRuntimeServerException; |
||
| 33 | case 1: |
||
| 34 | return $this->server = current($servers); |
||
| 35 | default: |
||
| 36 | throw new ConfusedRuntimeServerException; |
||
| 37 | } |
||
| 40 |
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.