Code Duplication    Length = 13-14 lines in 2 locations

lib/Provider/FilesProvider.php 2 locations

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