MCPcopy Create free account
hub / github.com/Rello/analytics / removeFavoriteTag

Method removeFavoriteTag

lib/Service/ReportService.php:420–430  ·  view source on GitHub ↗
(string $scope, int $objectId)

Source from the content-addressed store, hash-verified

418 }
419
420 private function removeFavoriteTag(string $scope, int $objectId): bool {
421 try {
422 return $this->tagManager->load($scope)->removeFromFavorites($objectId);
423 } catch (\Throwable $exception) {
424 // Nextcloud removes the stored favorite relation before its special
425 // favorite-tag cleanup tries to resolve the object id as a file node.
426 // Analytics ids are not file node ids, so the follow-up can throw after
427 // the unfavorite already succeeded from the app's point of view.
428 return true;
429 }
430 }
431
432 /**
433 * Import Report from File

Callers 2

getOwnFavoriteReportsMethod · 0.95
setFavoriteMethod · 0.95

Calls 2

removeFromFavoritesMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected