Add tests for OCP\Share::unshareAll().
OCP\Share::unshareAll(): Deduplicate hook parameters.
Extract unshare() code into unshareItem().
Use unshareItem() in unshareAll().
Use unshareItem() when unsharing expired shares.
CamelCase $hookParams.
Deduplicate expiration date check into a method.