Code Duplication    Length = 13-14 lines in 2 locations

lib/Provider/FilesProvider.php 2 locations

@@ 166-178 (lines=13) @@
163
			)
164
		);
165
166
		if ($this->configService->getAppValue(ConfigService::FILES_EXTERNAL) === '1') {
167
			$template->addPanelOption(
168
				new SearchOption(
169
					'files_external', $this->l10n->t('Within external files'),
170
					SearchOption::CHECKBOX
171
				)
172
			);
173
			$template->addNavigationOption(
174
				new SearchOption(
175
					'files_external', $this->l10n->t('External files'), SearchOption::CHECKBOX
176
				)
177
			);
178
		}
179
180
		if ($this->configService->getAppValue(ConfigService::FILES_GROUP_FOLDERS) === '1') {
181
			$template->addPanelOption(
@@ 180-193 (lines=14) @@
177
			);
178
		}
179
180
		if ($this->configService->getAppValue(ConfigService::FILES_GROUP_FOLDERS) === '1') {
181
			$template->addPanelOption(
182
				new SearchOption(
183
					'files_group_folders', $this->l10n->t('Within group folders'),
184
					SearchOption::CHECKBOX
185
				)
186
			);
187
			$template->addNavigationOption(
188
				new SearchOption(
189
					'files_group_folders', $this->l10n->t('Group folders'),
190
					SearchOption::CHECKBOX
191
				)
192
			);
193
		}
194
195
		$template->addPanelOption(
196
			new SearchOption(