| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 36 | static function index_update ( |
||
| 37 | /** @noinspection PhpUnusedParameterInspection */ |
||
| 38 | $Request, |
||
|
1 ignored issue
–
show
|
|||
| 39 | $Response |
||
| 40 | ) { |
||
| 41 | $callback = function ($data) { |
||
| 42 | echo $data['message']; |
||
| 43 | }; |
||
| 44 | $Event = Event::instance(); |
||
| 45 | $Event->on('Composer/update_progress', $callback); |
||
| 46 | $Response->code = Composer::instance()->force_update(); |
||
| 47 | $Event->off('Composer/update_progress', $callback); |
||
| 48 | } |
||
| 49 | /** |
||
| 61 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.