| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 31 | public function actionBump($version = null) |
||
| 32 | { |
||
| 33 | $version = $version ?: $this->module->request->getParams()[1]; |
||
| 34 | $args = ['bump']; |
||
| 35 | if ($version) { |
||
| 36 | $this->takeGoal('version')->actionMake($version); |
||
| 37 | $args[] = $version; |
||
| 38 | } |
||
| 39 | |||
| 40 | return $this->passthru('chkipper', $args); |
||
| 41 | } |
||
| 42 | |||
| 53 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: