diff --git a/src/Services/MenuManager.php b/src/Services/MenuManager.php index 13466c79..84f418a8 100644 --- a/src/Services/MenuManager.php +++ b/src/Services/MenuManager.php @@ -18,7 +18,7 @@ class MenuManager public function registerMenus(): void { - if(!is_main_site() && !is_network_admin()) { + if (!is_main_site() && !is_network_admin()) { return; } add_menu_page( diff --git a/tests/Feature/Actions/InstitutionalManagerDashboardTest.php b/tests/Feature/Actions/InstitutionalManagerDashboardTest.php index 5b70528a..ac082aab 100644 --- a/tests/Feature/Actions/InstitutionalManagerDashboardTest.php +++ b/tests/Feature/Actions/InstitutionalManagerDashboardTest.php @@ -1,7 +1,6 @@ getClosureScopeClass()?->getName() === $expectedClass) { + if ($closure->getClosureScopeClass()?->getName() === $expectedClass) { $hasHandler = true; break; diff --git a/tests/Traits/CreatesModels.php b/tests/Traits/CreatesModels.php index 039ab2bb..a7e7bc50 100644 --- a/tests/Traits/CreatesModels.php +++ b/tests/Traits/CreatesModels.php @@ -70,7 +70,7 @@ protected function newBook(array $properties = []): int $blog = $this->factory()->blog->create($properties); - if(!isset($properties['no_collector'])) { + if (!isset($properties['no_collector'])) { DataCollector::init()->copyBookMetaIntoSiteTable($blog); }