| @@ -16,9 +16,8 @@ | ||
| 16 | 16 | * guard. The suppressor list here exists for future-proofing. |
| 17 | 17 | * |
| 18 | 18 | * Fallback path: if strategy (a) causes problems in Phase 02 pilot, |
| 19 | 19 | * disable this suppressor and coexist with legacy menus (strategy b). |
| 20 | - * @internal | |
| 21 | 20 | */ |
| 22 | 21 | class MenuSuppressor |
| 23 | 22 | { |
| 24 | 23 | /** |
| @@ -40,9 +39,9 @@ | ||
| 40 | 39 | /** |
| 41 | 40 | * Register hooks. Runs on admin_menu / network_admin_menu priority 5 |
| 42 | 41 | * (before standard priority 10). |
| 43 | 42 | */ |
| 44 | - public function init() : void | |
| 43 | + public function init(): void | |
| 45 | 44 | { |
| 46 | 45 | AdminContext::bind_menu([$this, 'suppress_legacy_menus'], 5); |
| 47 | 46 | } |
| 48 | 47 | /** |
| @@ -47,9 +46,9 @@ | ||
| 47 | 46 | } |
| 48 | 47 | /** |
| 49 | 48 | * Remove any legacy top-level menus from the slug list. |
| 50 | 49 | */ |
| 51 | - public function suppress_legacy_menus() : void | |
| 50 | + public function suppress_legacy_menus(): void | |
| 52 | 51 | { |
| 53 | 52 | foreach ($this->slugs_to_suppress as $slug) { |
| 54 | 53 | remove_menu_page($slug); |
| 55 | 54 | } |
| @@ -58,9 +57,9 @@ | ||
| 58 | 57 | * Return the list of slugs this suppressor will remove. |
| 59 | 58 | * |
| 60 | 59 | * @return string[] |
| 61 | 60 | */ |
| 62 | - public function get_slugs() : array | |
| 61 | + public function get_slugs(): array | |
| 63 | 62 | { |
| 64 | 63 | return $this->slugs_to_suppress; |
| 65 | 64 | } |
| 66 | 65 | } |