Code Duplication    Length = 4-4 lines in 3 locations

src/DI/TranslationExtension.php 3 locations

@@ 183-186 (lines=4) @@
180
			->setFactory(ChainResolver::class);
181
182
		$resolvers = [];
183
		if ($config['resolvers'][self::RESOLVER_HEADER]) {
184
			$resolvers[] = $this->prefix('@userLocaleResolver.acceptHeader');
185
			$chain->addSetup('addResolver', [$this->prefix('@userLocaleResolver.acceptHeader')]);
186
		}
187
188
		if ($config['resolvers'][self::RESOLVER_REQUEST]) {
189
			$resolvers[] = $this->prefix('@userLocaleResolver.param');
@@ 188-191 (lines=4) @@
185
			$chain->addSetup('addResolver', [$this->prefix('@userLocaleResolver.acceptHeader')]);
186
		}
187
188
		if ($config['resolvers'][self::RESOLVER_REQUEST]) {
189
			$resolvers[] = $this->prefix('@userLocaleResolver.param');
190
			$chain->addSetup('addResolver', [$this->prefix('@userLocaleResolver.param')]);
191
		}
192
193
		if ($config['resolvers'][self::RESOLVER_SESSION]) {
194
			$resolvers[] = $this->prefix('@userLocaleResolver.session');
@@ 193-196 (lines=4) @@
190
			$chain->addSetup('addResolver', [$this->prefix('@userLocaleResolver.param')]);
191
		}
192
193
		if ($config['resolvers'][self::RESOLVER_SESSION]) {
194
			$resolvers[] = $this->prefix('@userLocaleResolver.session');
195
			$chain->addSetup('addResolver', [$this->prefix('@userLocaleResolver.session')]);
196
		}
197
198
		if ($config['debugger'] && interface_exists(IBarPanel::class)) {
199
			$builder->getDefinition($this->prefix('panel'))