Code Duplication    Length = 3-3 lines in 2 locations

src/Aimeos/Shop/Base/Config.php 1 location

@@ 65-67 (lines=3) @@
62
63
			$config = new \Aimeos\MW\Config\PHPArray( require $cfgfile, $configPaths );
64
65
			if( $this->config->get( 'shop.apc_enabled', false ) == true ) {
66
				$config = new \Aimeos\MW\Config\Decorator\APC( $config, $this->config->get( 'shop.apc_prefix', 'laravel:' ) );
67
			}
68
69
			$config = new \Aimeos\MW\Config\Decorator\Memory( $config, $this->config->get( 'shop' ) );
70

src/Aimeos/Shop/Base/I18n.php 1 location

@@ 66-68 (lines=3) @@
63
			{
64
				$i18n = new \Aimeos\MW\Translation\Gettext( $i18nPaths, $langid );
65
66
				if( $this->config->get( 'shop.apc_enabled', false ) == true ) {
67
					$i18n = new \Aimeos\MW\Translation\Decorator\APC( $i18n, $this->config->get( 'shop.apc_prefix', 'laravel:' ) );
68
				}
69
70
				if( $this->config->has( 'shop.i18n.' . $langid ) ) {
71
					$i18n = new \Aimeos\MW\Translation\Decorator\Memory( $i18n, $this->config->get( 'shop.i18n.' . $langid ) );