MCPcopy Create free account
hub / github.com/error311/FileRise / renameOwnerKey

Method renameOwnerKey

src/FileRise/Domain/FolderModel.php:1050–1060  ·  view source on GitHub ↗

Rename a single ownership key (old → new). */

(string $old, string $new)

Source from the content-addressed store, hash-verified

1048
1049 /** Rename a single ownership key (old → new). */
1050 public static function renameOwnerKey(string $old, string $new): void
1051 {
1052 $old = trim($old, "/\\ ");
1053 $new = trim($new, "/\\ ");
1054 $owners = self::getFolderOwners();
1055 if (isset($owners[$old])) {
1056 $owners[$new] = $owners[$old];
1057 unset($owners[$old]);
1058 self::saveFolderOwners($owners);
1059 }
1060 }
1061
1062 /** Remove ownership for a folder and all its descendants. */
1063 public static function removeOwnerForTree(string $folder): void

Callers

nothing calls this directly

Calls 2

getFolderOwnersMethod · 0.95
saveFolderOwnersMethod · 0.95

Tested by

no test coverage detected