match($activity, $hiddenActivity)) { return true; } } return false; } /** * Compare activity uri. Knows about activity namespace. * * @param string $haystack * @param string $needle * * @return boolean */ public function match(string $haystack, string $needle) { return (($haystack === $needle) || ((basename($needle) === $haystack) && strstr($needle, ActivityNamespace::ACTIVITY_SCHEMA))); } }