| Total Complexity | 3 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | class MenuInstaller extends PluginInstaller_Plugin { |
||
| 29 | |||
| 30 | public function install(Plugin $plugin, array $install_json): bool { |
||
| 31 | // TODO: Implement install() method. |
||
| 32 | } |
||
|
|
|||
| 33 | |||
| 34 | public function uninstall(Plugin $plugin, array $install_json): bool { |
||
| 35 | // TODO: Implement uninstall() method. |
||
| 36 | } |
||
| 37 | |||
| 38 | public function upgrade(Plugin $plugin, array $install_json): bool { |
||
| 39 | // TODO: Implement upgrade() method. |
||
| 40 | } |
||
| 41 | |||
| 45 |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: