| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Code Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | public function registerMenuItems(ParentItem $root) |
||
| 28 | { |
||
| 29 | $root->addChild( |
||
| 30 | ParentItem::class, |
||
| 31 | 'admin', |
||
| 32 | 'expansion_menu.admin.label', |
||
| 33 | null // Permission are handled by sub elements. |
||
| 34 | ); |
||
| 35 | |||
| 36 | $root->addChild( |
||
| 37 | ChatCommandItem::class, |
||
| 38 | 'admin/restartmap', |
||
| 39 | 'expansion_admin_chat.restartmap.label', |
||
| 40 | 'restart', |
||
| 41 | ['cmd' => '/admin restart'] |
||
| 42 | ); |
||
| 43 | $root->addChild( |
||
| 44 | ChatCommandItem::class, |
||
| 45 | 'admin/nextmap', |
||
| 46 | 'expansion_admin_chat.nextmap.label', |
||
| 47 | 'next', |
||
| 48 | ['cmd' => '/admin next'] |
||
| 49 | ); |
||
| 50 | $root->addChild( |
||
| 51 | ChatCommandItem::class, |
||
| 52 | 'admin/cancel', |
||
| 53 | 'expansion_admin_chat.cancel.label', |
||
| 54 | 'votes', |
||
| 55 | ['cmd' => '/admin cancel'] |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | } |