}
$url = \OCP\Util::linkToAbsolute('files', 'index.php', array("dir" => $foldername));
- $text = $defaults->getShareNotificationText(\OCP\User::getDisplayName(), $filename, $itemType, $url, $expiration);
+ $text = $defaults->getShareNotificationText(
+ \OCP\User::getDisplayName(),
+ $filename,
+ $itemType,
+ $url,
+ $expiration
+ );
try {
OCP\Util::sendMail(
if (empty($noMail)) {
OCP\JSON::success();
} else {
- OCP\JSON::error(array('data' => array('message' => $l->t("Couldn't send mail to following users: %s ", implode(', ', $noMail)))));
+ OCP\JSON::error(array(
+ 'data' => array(
+ 'message' => $l->t("Couldn't send mail to following users: %s ",
+ implode(', ', $noMail)
+ )
+ )
+ ));
}
break;
case 'informRecipientsDisabled':
return $this->theme->getShareNotificationText($sender, $itemName, $itemType, $link, $expiration);
} else {
if ($expiration) {
- return $this->l->t("%s shared a %s called %s with you. The share will expire at %s. You can find the %s here: %s", array($sender, $itemType, $itemName, $expiration, $itemType, $link));
+ return $this->l->t("%s shared a %s called %s with you. " .
+ "The share will expire at %s. ".
+ "You can find the %s here: %s",
+ array($sender, $itemType, $itemName, $expiration, $itemType, $link));
} else {
- return $this->l->t("%s shared a %s called %s with you. You can find the %s here: %s", array($sender, $itemType, $itemName, $itemType, $link));
+ return $this->l->t("%s shared a %s called %s with you. ".
+ "You can find the %s here: %s",
+ array($sender, $itemType, $itemName, $itemType, $link));
}
}
}