Completed
Push — stable10 ( e55881...b0ab3b )
by Joas
36:13 queued 35:48
created
lib/private/Repair/SharePropagation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 		return 'Remove old share propagation app entries';
45 45
 	}
46 46
 
47
-	public function run(IOutput $out ) {
47
+	public function run(IOutput $out) {
48 48
 		$keys = $this->config->getAppKeys('files_sharing');
49 49
 
50 50
 		foreach ($keys as $key) {
Please login to merge, or discard this patch.
lib/private/Repair/RepairMimeTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	private function updateMimetypes($updatedMimetypes) {
136 136
 		if (empty($this->folderMimeTypeId)) {
137 137
 			$result = \OC_DB::executeAudited(self::getIdStmt(), array('httpd/unix-directory'));
138
-			$this->folderMimeTypeId = (int)$result->fetchOne();
138
+			$this->folderMimeTypeId = (int) $result->fetchOne();
139 139
 		}
140 140
 
141 141
 		foreach ($updatedMimetypes as $extension => $mimetype) {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 			$mimetypeId = $result->fetchOne();
153 153
 
154 154
 			// change mimetype for files with x extension
155
-			\OC_DB::executeAudited(self::updateByNameStmt(), array($mimetypeId, $this->folderMimeTypeId, $mimetypeId, '%.' . $extension));
155
+			\OC_DB::executeAudited(self::updateByNameStmt(), array($mimetypeId, $this->folderMimeTypeId, $mimetypeId, '%.'.$extension));
156 156
 		}
157 157
 	}
158 158
 
Please login to merge, or discard this patch.
lib/private/Repair/OldGroupMembershipShares.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 		$result->closeCursor();
94 94
 
95 95
 		if ($deletedEntries) {
96
-			$output->info('Removed ' . $deletedEntries . ' shares where user is not a member of the group anymore');
96
+			$output->info('Removed '.$deletedEntries.' shares where user is not a member of the group anymore');
97 97
 		}
98 98
 	}
99 99
 
Please login to merge, or discard this patch.
lib/private/Repair/Preview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
 		foreach ($children as $child) {
40 40
 			if ($view->is_dir($child->getPath())) {
41
-				$thumbnailsFolder = $child->getPath() . '/thumbnails';
41
+				$thumbnailsFolder = $child->getPath().'/thumbnails';
42 42
 				if ($view->is_dir($thumbnailsFolder)) {
43 43
 					$view->rmdir($thumbnailsFolder);
44 44
 				}
Please login to merge, or discard this patch.
lib/private/Repair/CleanTags.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,14 +171,14 @@
 block discarded – undo
171 171
 	protected function deleteOrphanEntries(IOutput $output, $repairInfo, $deleteTable, $deleteId, $sourceTable, $sourceId, $sourceNullColumn) {
172 172
 		$qb = $this->connection->getQueryBuilder();
173 173
 
174
-		$qb->select('d.' . $deleteId)
174
+		$qb->select('d.'.$deleteId)
175 175
 			->from($deleteTable, 'd')
176
-			->leftJoin('d', $sourceTable, 's', $qb->expr()->eq('d.' . $deleteId, ' s.' . $sourceId))
176
+			->leftJoin('d', $sourceTable, 's', $qb->expr()->eq('d.'.$deleteId, ' s.'.$sourceId))
177 177
 			->where(
178 178
 				$qb->expr()->eq('d.type', $qb->expr()->literal('files'))
179 179
 			)
180 180
 			->andWhere(
181
-				$qb->expr()->isNull('s.' . $sourceNullColumn)
181
+				$qb->expr()->isNull('s.'.$sourceNullColumn)
182 182
 			);
183 183
 		$result = $qb->execute();
184 184
 
Please login to merge, or discard this patch.
lib/private/Repair/DropOldJobs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
 	 */
58 58
 	public function run(IOutput $output) {
59 59
 		$oldJobs = $this->oldJobs();
60
-		foreach($oldJobs as $job) {
61
-			if($this->jobList->has($job['class'], $job['arguments'])) {
60
+		foreach ($oldJobs as $job) {
61
+			if ($this->jobList->has($job['class'], $job['arguments'])) {
62 62
 				$this->jobList->remove($job['class'], $job['arguments']);
63 63
 			}
64 64
 		}
Please login to merge, or discard this patch.
lib/private/Repair/UpdateOutdatedOcsIds.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	public function fixOcsId($appName, $oldId, $newId) {
63 63
 		$existingId = $this->config->getAppValue($appName, 'ocsid');
64 64
 
65
-		if($existingId === $oldId) {
65
+		if ($existingId === $oldId) {
66 66
 			$this->config->setAppValue($appName, 'ocsid', $newId);
67 67
 			return true;
68 68
 		}
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 			]
98 98
 		];
99 99
 
100
-		foreach($appsToUpdate as $appName => $ids) {
100
+		foreach ($appsToUpdate as $appName => $ids) {
101 101
 			if ($this->fixOcsId($appName, $ids['old'], $ids['new'])) {
102 102
 				$output->info("Fixed invalid $appName OCS id");
103 103
 			}
Please login to merge, or discard this patch.
lib/private/Repair/RemoveGetETagEntries.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
 			. ' WHERE `propertyname` = ?';
54 54
 		$deletedRows = $this->connection->executeUpdate($sql, ['{DAV:}getetag']);
55 55
 
56
-		$out->info('Removed ' . $deletedRows . ' unneeded "{DAV:}getetag" entries from properties table.');
56
+		$out->info('Removed '.$deletedRows.' unneeded "{DAV:}getetag" entries from properties table.');
57 57
 	}
58 58
 }
Please login to merge, or discard this patch.
lib/private/DB/AdapterSqlite.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
 	public function fixupStatement($statement) {
44 44
 		$statement = preg_replace('( I?LIKE \?)', '$0 ESCAPE \'\\\'', $statement);
45 45
 		$statement = preg_replace('/`(\w+)` ILIKE \?/', 'LOWER($1) LIKE LOWER(?)', $statement);
46
-		$statement = str_replace( '`', '"', $statement );
47
-		$statement = str_ireplace( 'NOW()', 'datetime(\'now\')', $statement );
46
+		$statement = str_replace('`', '"', $statement);
47
+		$statement = str_ireplace('NOW()', 'datetime(\'now\')', $statement);
48 48
 		$statement = str_ireplace('GREATEST(', 'MAX(', $statement);
49
-		$statement = str_ireplace( 'UNIX_TIMESTAMP()', 'strftime(\'%s\',\'now\')', $statement );
49
+		$statement = str_ireplace('UNIX_TIMESTAMP()', 'strftime(\'%s\',\'now\')', $statement);
50 50
 		return $statement;
51 51
 	}
52 52
 
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
 		if (empty($compare)) {
66 66
 			$compare = array_keys($input);
67 67
 		}
68
-		$fieldList = '`' . implode('`,`', array_keys($input)) . '`';
68
+		$fieldList = '`'.implode('`,`', array_keys($input)).'`';
69 69
 		$query = "INSERT INTO `$table` ($fieldList) SELECT "
70
-			. str_repeat('?,', count($input)-1).'? '
70
+			. str_repeat('?,', count($input) - 1).'? '
71 71
 			. " WHERE NOT EXISTS (SELECT 1 FROM `$table` WHERE ";
72 72
 
73 73
 		$inserts = array_values($input);
74
-		foreach($compare as $key) {
75
-			$query .= '`' . $key . '`';
74
+		foreach ($compare as $key) {
75
+			$query .= '`'.$key.'`';
76 76
 			if (is_null($input[$key])) {
77 77
 				$query .= ' IS NULL AND ';
78 78
 			} else {
Please login to merge, or discard this patch.