@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $updatedEntries = $builder->executeStatement(); |
46 | 46 | if ($updatedEntries > 0) { |
47 | - $output->info('Fixed file share permissions for ' . $updatedEntries . ' shares'); |
|
47 | + $output->info('Fixed file share permissions for '.$updatedEntries.' shares'); |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
@@ -73,14 +73,14 @@ discard block |
||
73 | 73 | $result = $query->executeQuery(); |
74 | 74 | while ($row = $result->fetch()) { |
75 | 75 | $deletedInLastChunk++; |
76 | - $deletedEntries += $deleteQuery->setParameter('parent', (int)$row['parent']) |
|
76 | + $deletedEntries += $deleteQuery->setParameter('parent', (int) $row['parent']) |
|
77 | 77 | ->executeStatement(); |
78 | 78 | } |
79 | 79 | $result->closeCursor(); |
80 | 80 | } |
81 | 81 | |
82 | 82 | if ($deletedEntries) { |
83 | - $output->info('Removed ' . $deletedEntries . ' shares where the parent did not exist'); |
|
83 | + $output->info('Removed '.$deletedEntries.' shares where the parent did not exist'); |
|
84 | 84 | } |
85 | 85 | } |
86 | 86 |
@@ -32,17 +32,17 @@ |
||
32 | 32 | public function run($argument): void { |
33 | 33 | $uid = $argument['uid']; |
34 | 34 | if (!$this->userManager->userExists($uid)) { |
35 | - $this->logger->info('User no longer exists, skip user ' . $uid); |
|
35 | + $this->logger->info('User no longer exists, skip user '.$uid); |
|
36 | 36 | return; |
37 | 37 | } |
38 | - $this->logger->info('Started preview cleanup for ' . $uid); |
|
38 | + $this->logger->info('Started preview cleanup for '.$uid); |
|
39 | 39 | $empty = $this->cleanupPreviews($uid); |
40 | 40 | |
41 | 41 | if (!$empty) { |
42 | 42 | $this->jobList->add(self::class, ['uid' => $uid]); |
43 | - $this->logger->info('New preview cleanup scheduled for ' . $uid); |
|
43 | + $this->logger->info('New preview cleanup scheduled for '.$uid); |
|
44 | 44 | } else { |
45 | - $this->logger->info('Preview cleanup done for ' . $uid); |
|
45 | + $this->logger->info('Preview cleanup done for '.$uid); |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $offset = $argument['offset']; |
32 | 32 | $stopAt = $argument['stopAt']; |
33 | 33 | |
34 | - $this->logger->info('Indexing social profile data (' . $offset . '/' . $stopAt . ')'); |
|
34 | + $this->logger->info('Indexing social profile data ('.$offset.'/'.$stopAt.')'); |
|
35 | 35 | |
36 | 36 | $offset = $this->buildIndex($offset, $stopAt); |
37 | 37 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | 'offset' => $offset, |
43 | 43 | 'stopAt' => $stopAt |
44 | 44 | ]); |
45 | - $this->logger->info('New social profile indexing job scheduled with offset ' . $offset); |
|
45 | + $this->logger->info('New social profile indexing job scheduled with offset '.$offset); |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | ->from('cards', 'c') |
61 | 61 | ->orderBy('id', 'ASC') |
62 | 62 | ->where($query->expr()->like('carddata', $query->createNamedParameter('%SOCIALPROFILE%'))) |
63 | - ->andWhere($query->expr()->gt('id', $query->createNamedParameter((int)$offset, IQueryBuilder::PARAM_INT))) |
|
63 | + ->andWhere($query->expr()->gt('id', $query->createNamedParameter((int) $offset, IQueryBuilder::PARAM_INT))) |
|
64 | 64 | ->setMaxResults(100); |
65 | 65 | $social_cards = $query->executeQuery()->fetchAll(); |
66 | 66 |
@@ -27,10 +27,10 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | public function run($argument) { |
30 | - $offset = (int)$argument['offset']; |
|
31 | - $stopAt = (int)$argument['stopAt']; |
|
30 | + $offset = (int) $argument['offset']; |
|
31 | + $stopAt = (int) $argument['stopAt']; |
|
32 | 32 | |
33 | - $this->logger->info('Building calendar index (' . $offset . '/' . $stopAt . ')'); |
|
33 | + $this->logger->info('Building calendar index ('.$offset.'/'.$stopAt.')'); |
|
34 | 34 | |
35 | 35 | $startTime = $this->time->getTime(); |
36 | 36 | while (($this->time->getTime() - $startTime) < 15) { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'offset' => $offset, |
48 | 48 | 'stopAt' => $stopAt |
49 | 49 | ]); |
50 | - $this->logger->info('New building calendar index job scheduled with offset ' . $offset); |
|
50 | + $this->logger->info('New building calendar index job scheduled with offset '.$offset); |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 |
@@ -32,11 +32,11 @@ |
||
32 | 32 | */ |
33 | 33 | public function run($argument): void { |
34 | 34 | $uploadList = []; |
35 | - $this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList): void { |
|
35 | + $this->userManager->callForSeenUsers(function(IUser $user) use (&$uploadList): void { |
|
36 | 36 | $userId = $user->getUID(); |
37 | 37 | try { |
38 | 38 | \OC_Util::setupFS($userId); |
39 | - $filesExternalUploadsFolder = $this->rootFolder->get($userId . '/files_external/uploads'); |
|
39 | + $filesExternalUploadsFolder = $this->rootFolder->get($userId.'/files_external/uploads'); |
|
40 | 40 | } catch (NotFoundException $e) { |
41 | 41 | \OC_Util::tearDownFS(); |
42 | 42 | return; |