Completed
Push — master ( 08b58a...0efd05 )
by Daniel
30:08 queued 21s
created
apps/settings/lib/SetupChecks/MimeTypeMigrationAvailable.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@
 block discarded – undo
15 15
 
16 16
 class MimeTypeMigrationAvailable implements ISetupCheck {
17 17
 
18
-	public function __construct(
19
-		private RepairMimeTypes $repairMimeTypes,
20
-		private IL10N $l10n,
21
-	) {
22
-	}
23
-
24
-	public function getCategory(): string {
25
-		return 'system';
26
-	}
27
-
28
-	public function getName(): string {
29
-		return $this->l10n->t('Mimetype migrations available');
30
-	}
31
-
32
-	public function run(): SetupResult {
33
-		if ($this->repairMimeTypes->migrationsAvailable()) {
34
-			return SetupResult::warning(
35
-				$this->l10n->t('One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.'),
36
-			);
37
-		} else {
38
-			return SetupResult::success('None');
39
-		}
40
-	}
18
+    public function __construct(
19
+        private RepairMimeTypes $repairMimeTypes,
20
+        private IL10N $l10n,
21
+    ) {
22
+    }
23
+
24
+    public function getCategory(): string {
25
+        return 'system';
26
+    }
27
+
28
+    public function getName(): string {
29
+        return $this->l10n->t('Mimetype migrations available');
30
+    }
31
+
32
+    public function run(): SetupResult {
33
+        if ($this->repairMimeTypes->migrationsAvailable()) {
34
+            return SetupResult::warning(
35
+                $this->l10n->t('One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.'),
36
+            );
37
+        } else {
38
+            return SetupResult::success('None');
39
+        }
40
+    }
41 41
 }
Please login to merge, or discard this patch.