Passed
Push — master ( 3c693d...ccd5ca )
by Roeland
28:56 queued 14:09
created
lib/private/Repair/Owncloud/SaveAccountsTableData.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		}
80 80
 
81 81
 		// oc_persistent_locks will be removed later on anyways so we can just drop and ignore any foreign key constraints here
82
-		$tableName = $this->config->getSystemValue('dbtableprefix', 'oc_') . 'persistent_locks';
82
+		$tableName = $this->config->getSystemValue('dbtableprefix', 'oc_').'persistent_locks';
83 83
 		$schema = $this->db->createSchema();
84 84
 		$table = $schema->getTable($tableName);
85 85
 		foreach ($table->getForeignKeys() as $foreignKey) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 		$schema = $this->db->createSchema();
102 102
 		$prefix = $this->config->getSystemValue('dbtableprefix', 'oc_');
103 103
 
104
-		$tableName = $prefix . 'accounts';
104
+		$tableName = $prefix.'accounts';
105 105
 		if (!$schema->hasTable($tableName)) {
106 106
 			return false;
107 107
 		}
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
 			return false;
112 112
 		}
113 113
 
114
-		if ($schema->hasTable($prefix . 'persistent_locks')) {
115
-			$locksTable = $schema->getTable($prefix . 'persistent_locks');
114
+		if ($schema->hasTable($prefix.'persistent_locks')) {
115
+			$locksTable = $schema->getTable($prefix.'persistent_locks');
116 116
 			$foreignKeys = $locksTable->getForeignKeys();
117 117
 			foreach ($foreignKeys as $foreignKey) {
118 118
 				if ($tableName === $foreignKey->getForeignTableName()) {
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/CleanPreviews.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
 	public function run(IOutput $output) {
66 66
 		if (!$this->config->getAppValue('core', 'previewsCleanedUp', false)) {
67
-			$this->userManager->callForSeenUsers(function (IUser $user) {
67
+			$this->userManager->callForSeenUsers(function(IUser $user) {
68 68
 				$this->jobList->add(CleanPreviewsBackgroundJob::class, ['uid' => $user->getUID()]);
69 69
 			});
70 70
 			$this->config->setAppValue('core', 'previewsCleanedUp', '1');
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/InstallCoreBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 				$this->installer->installAppBundle($bundle);
74 74
 				$output->info('Successfully installed core app bundle.');
75 75
 			} catch (\Exception $e) {
76
-				$output->warning('Could not install core app bundle: ' . $e->getMessage());
76
+				$output->warning('Could not install core app bundle: '.$e->getMessage());
77 77
 			}
78 78
 		}
79 79
 	}
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,17 +72,17 @@
 block discarded – undo
72 72
 	public function run($arguments) {
73 73
 		$uid = $arguments['uid'];
74 74
 		if (!$this->userManager->userExists($uid)) {
75
-			$this->logger->info('User no longer exists, skip user ' . $uid);
75
+			$this->logger->info('User no longer exists, skip user '.$uid);
76 76
 			return;
77 77
 		}
78
-		$this->logger->info('Started preview cleanup for ' . $uid);
78
+		$this->logger->info('Started preview cleanup for '.$uid);
79 79
 		$empty = $this->cleanupPreviews($uid);
80 80
 
81 81
 		if (!$empty) {
82 82
 			$this->jobList->add(self::class, ['uid' => $uid]);
83
-			$this->logger->info('New preview cleanup scheduled for ' . $uid);
83
+			$this->logger->info('New preview cleanup scheduled for '.$uid);
84 84
 		} else {
85
-			$this->logger->info('Preview cleanup done for ' . $uid);
85
+			$this->logger->info('Preview cleanup done for '.$uid);
86 86
 		}
87 87
 	}
88 88
 
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
 		}
71 71
 
72 72
 		$counter = 0;
73
-		$this->userManager->callForSeenUsers(function (IUser $user) use ($counter) {
73
+		$this->userManager->callForSeenUsers(function(IUser $user) use ($counter) {
74 74
 			$uid = $user->getUID();
75 75
 
76
-			$path = 'avatars/' . $this->buildOwnCloudAvatarPath($uid);
76
+			$path = 'avatars/'.$this->buildOwnCloudAvatarPath($uid);
77 77
 			$avatar = $this->avatarManager->getAvatar($uid);
78 78
 			try {
79
-				$avatarPath = $path . '/avatar.' . $this->getExtension($path);
79
+				$avatarPath = $path.'/avatar.'.$this->getExtension($path);
80 80
 				$resource = $this->owncloudAvatarStorage->fopen($avatarPath, 'r');
81 81
 				if ($resource) {
82 82
 					$avatar->set($resource);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 			} catch (NotFoundException $e) {
88 88
 				// In case there is no avatar we can just skip
89 89
 			} catch (\Throwable $e) {
90
-				$this->logger->error('Failed to migrate avatar for user ' . $uid, ['exception' => $e]);
90
+				$this->logger->error('Failed to migrate avatar for user '.$uid, ['exception' => $e]);
91 91
 			}
92 92
 
93 93
 			$counter++;
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/UpdateLanguageCodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 				->andWhere($qb->expr()->eq('configvalue', $qb->createNamedParameter($oldCode), IQueryBuilder::PARAM_STR))
85 85
 				->execute();
86 86
 
87
-			$output->info('Changed ' . $affectedRows . ' setting(s) from "' . $oldCode . '" to "' . $newCode . '" in preferences table.');
87
+			$output->info('Changed '.$affectedRows.' setting(s) from "'.$oldCode.'" to "'.$newCode.'" in preferences table.');
88 88
 		}
89 89
 	}
90 90
 }
Please login to merge, or discard this patch.