We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 6 | public static function headquarters() { |
||
| 7 | global $var; |
||
| 8 | $menu_items = []; |
||
| 9 | $container = create_container('skeleton.php'); |
||
| 10 | $container['LocationID'] = $var['LocationID']; |
||
| 11 | |||
| 12 | $location = SmrLocation::getLocation($var['LocationID']); |
||
| 13 | if ($location->isHQ()) { |
||
| 14 | $container['body'] = 'government.php'; |
||
| 15 | $menu_items[] = create_link($container, 'Government', 'nav'); |
||
| 16 | $container['body'] = 'military_payment_claim.php'; |
||
| 17 | $menu_items[] = create_link($container, 'Claim Military Payment', 'nav'); |
||
| 18 | } elseif ($location->isUG()) { |
||
| 19 | $container['body'] = 'underground.php'; |
||
| 20 | $menu_items[] = create_link($container, 'Underground', 'nav'); |
||
| 21 | } else { |
||
| 22 | throw new Exception("Location is not HQ or UG: " . $location->getName()); |
||
| 23 | } |
||
| 24 | create_menu($menu_items); |
||
| 25 | } |
||
| 28 |