Total Complexity | 4 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | trait HostPortDbTrait |
||
17 | { |
||
18 | protected static string $CFG_HOST = 'ORM_%s_HOST'; |
||
19 | protected static string $CFG_PORT = 'ORM_%s_PORT'; |
||
20 | protected static string $CFG_DB = 'ORM_%s_DATABASE'; |
||
21 | |||
22 | 2 | public function getHost(): ?string |
|
25 | } |
||
26 | |||
27 | 2 | public function getPort(int|null $default = null): ?int |
|
30 | } |
||
31 | |||
32 | 2 | public function getDb(): string |
|
37 |
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.