Passed
Push — master ( f97f13...ee67dd )
by Blizzz
12:46 queued 12s
created
core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
 	 * This job cleans up all backups except the latest 3 from the updaters backup directory
46 46
 	 */
47 47
 	public function run($arguments) {
48
-		$updateDir = $this->config->getSystemValue('updatedirectory', null) ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
48
+		$updateDir = $this->config->getSystemValue('updatedirectory', null) ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data');
49 49
 		$instanceId = $this->config->getSystemValue('instanceid', null);
50 50
 
51 51
 		if (!is_string($instanceId) || empty($instanceId)) {
52 52
 			return;
53 53
 		}
54 54
 
55
-		$updaterFolderPath = $updateDir . '/updater-' . $instanceId;
56
-		$backupFolderPath = $updaterFolderPath . '/backups';
55
+		$updaterFolderPath = $updateDir.'/updater-'.$instanceId;
56
+		$backupFolderPath = $updaterFolderPath.'/backups';
57 57
 		if (file_exists($backupFolderPath)) {
58 58
 			$this->log->info("$backupFolderPath exists - start to clean it up");
59 59
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 			ksort($dirList);
79 79
 			// drop the newest 3 directories
80 80
 			$dirList = array_slice($dirList, 0, -3);
81
-			$this->log->info("List of all directories that will be deleted: " . json_encode($dirList));
81
+			$this->log->info("List of all directories that will be deleted: ".json_encode($dirList));
82 82
 
83 83
 			foreach ($dirList as $dir) {
84 84
 				$this->log->info("Removing $dir ...");
Please login to merge, or discard this patch.