Remove redundant casts
For #25839 In short with the connection adapter we now have the function is typed to int (and casts itself). So it is not needed anymore. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
2afa1c5739
commit
4f37e0ce55
|
@ -258,7 +258,7 @@ class CloudFederationProviderFiles implements ICloudFederationProvider {
|
|||
->setType('remote_share')
|
||||
->setSubject(RemoteShares::SUBJECT_REMOTE_SHARE_RECEIVED, [$ownerFederatedId, trim($name, '/')])
|
||||
->setAffectedUser($shareWith)
|
||||
->setObject('remote_share', (int)$shareId, $name);
|
||||
->setObject('remote_share', $shareId, $name);
|
||||
\OC::$server->getActivityManager()->publish($event);
|
||||
$this->notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name);
|
||||
} else {
|
||||
|
@ -269,7 +269,7 @@ class CloudFederationProviderFiles implements ICloudFederationProvider {
|
|||
->setType('remote_share')
|
||||
->setSubject(RemoteShares::SUBJECT_REMOTE_SHARE_RECEIVED, [$ownerFederatedId, trim($name, '/')])
|
||||
->setAffectedUser($user->getUID())
|
||||
->setObject('remote_share', (int)$shareId, $name);
|
||||
->setObject('remote_share', $shareId, $name);
|
||||
\OC::$server->getActivityManager()->publish($event);
|
||||
$this->notifyAboutNewShare($user->getUID(), $shareId, $ownerFederatedId, $sharedByFederatedId, $name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue