Code Duplication    Length = 7-8 lines in 2 locations

lib/private/legacy/util.php 2 locations

@@ 672-678 (lines=7) @@
669
		}
670
671
		// Check if server running on Windows platform
672
		if(OC_Util::runningOnWindows()) {
673
			$errors[] = [
674
				'error' => $l->t('Microsoft Windows Platform is not supported'),
675
				'hint' => $l->t('Running Nextcloud Server on the Microsoft Windows platform is not supported. We suggest you ' .
676
					'use a Linux server in a virtual machine if you have no option for migrating the server itself.')
677
			];
678
		}
679
680
		// Check if config folder is writable.
681
		if(!OC_Helper::isReadOnlyConfigEnabled()) {
@@ 735-742 (lines=8) @@
732
			}
733
		}
734
735
		if (!OC_Util::isSetLocaleWorking()) {
736
			$errors[] = array(
737
				'error' => $l->t('Setting locale to %s failed',
738
					array('en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/'
739
						. 'pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8')),
740
				'hint' => $l->t('Please install one of these locales on your system and restart your webserver.')
741
			);
742
		}
743
744
		// Contains the dependencies that should be checked against
745
		// classes = class_exists