Code Duplication    Length = 3-7 lines in 2 locations

tests/preseed-config.php 1 location

@@ 13-19 (lines=7) @@
10
	],
11
];
12
13
if (is_dir(OC::$SERVERROOT.'/apps2')) {
14
	$CONFIG['apps_paths'][] = [
15
		'path' => OC::$SERVERROOT . '/apps2',
16
		'url' => '/apps2',
17
		'writable' => false,
18
	];
19
}
20
21
if (substr(strtolower(PHP_OS), 0, 3) === 'win') {
22
	$CONFIG['openssl'] = ['config' => OC::$SERVERROOT . '/tests/data/openssl.cnf'];

lib/base.php 1 location

@@ 214-216 (lines=3) @@
211
					OC::$APPSROOTS[] = $paths;
212
				}
213
			}
214
		} elseif (file_exists(OC::$SERVERROOT . '/apps')) {
215
			OC::$APPSROOTS[] = array('path' => OC::$SERVERROOT . '/apps', 'url' => '/apps', 'writable' => true);
216
		} elseif (file_exists(OC::$SERVERROOT . '/../apps')) {
217
			OC::$APPSROOTS[] = array(
218
				'path' => rtrim(dirname(OC::$SERVERROOT), '/') . '/apps',
219
				'url' => '/apps',