summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-16 11:44:35 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-04-16 15:42:21 +0200
commit093c308b584a35a6cc276d65db9db06d21a00ab6 (patch)
tree1a30e6a147137e48fd0ae26207b3200f6fdca2d1 /lib/private
parentfb396fe4365ed0b2ed28973d360327f51574e07a (diff)
downloadnextcloud-server-093c308b584a35a6cc276d65db9db06d21a00ab6.tar.gz
nextcloud-server-093c308b584a35a6cc276d65db9db06d21a00ab6.zip
Add return types
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Repair/RemoveLinkShares.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/Repair/RemoveLinkShares.php b/lib/private/Repair/RemoveLinkShares.php
index 49850298d40..55b5a7c1fae 100644
--- a/lib/private/Repair/RemoveLinkShares.php
+++ b/lib/private/Repair/RemoveLinkShares.php
@@ -86,7 +86,7 @@ class RemoveLinkShares implements IRepairStep {
*
* @param int $id
*/
- private function deleteShare(int $id) {
+ private function deleteShare(int $id): void {
$qb = $this->connection->getQueryBuilder();
$qb->delete('share')
->where($qb->expr()->eq('id', $qb->createNamedParameter($id)));
@@ -162,7 +162,7 @@ class RemoveLinkShares implements IRepairStep {
*
* @param array $data
*/
- private function processShare(array $data) {
+ private function processShare(array $data): void {
$id = $data['id'];
$this->addToNotify($data['uid_owner']);
@@ -176,7 +176,7 @@ class RemoveLinkShares implements IRepairStep {
*
* @param string $uid
*/
- private function addToNotify(string $uid) {
+ private function addToNotify(string $uid): void {
if (!isset($this->userToNotify[$uid])) {
$this->userToNotify[$uid] = true;
}
@@ -185,14 +185,14 @@ class RemoveLinkShares implements IRepairStep {
/**
* Send all notifications
*/
- private function sendNotification() {
+ private function sendNotification(): void {
$time = $this->timeFactory->getDateTime();
$notification = $this->notificationManager->createNotification();
$notification->setApp('core')
->setDateTime($time)
->setObject('repair', 'exposing_links')
- ->setSubject('repair_exposing_links', []);
+ ->setSubject('repair_exposing_links');
$users = array_keys($this->userToNotify);
foreach ($users as $user) {
@@ -201,7 +201,7 @@ class RemoveLinkShares implements IRepairStep {
}
}
- private function repair(IOutput $output) {
+ private function repair(IOutput $output): void {
$total = $this->getTotal();
$output->startProgress($total);
@@ -224,7 +224,7 @@ class RemoveLinkShares implements IRepairStep {
$this->sendNotification();
}
- public function run(IOutput $output) {
+ public function run(IOutput $output): void {
if ($this->shouldRun()) {
$output->info('Removing potentially over exposing link shares');
$this->repair($output);