apps/federatedfilesharing/lib/Ocm/NotificationManager.php
Method convertToOcmFileNotification
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function convertToOcmFileNotification($remoteId, $token, $action, $data = []) {
$notification = new FileNotification();
$map = [
'accept' => FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED,
'decline' => FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED,