Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 63-65 (lines=3) @@
60
			$configPaths = $this->aimeos->get()->getConfigPaths();
61
			$config = new \Aimeos\MW\Config\PHPArray( array(), $configPaths );
62
63
			if( function_exists( 'apc_store' ) === true && $this->config->get( 'shop.apc_enabled', false ) == true ) {
64
				$config = new \Aimeos\MW\Config\Decorator\APC( $config, $this->config->get( 'shop.apc_prefix', 'laravel:' ) );
65
			}
66
67
			$config = new \Aimeos\MW\Config\Decorator\Memory( $config, $this->config->get( 'shop' ) );
68

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( function_exists( 'apc_store' ) === true && $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 ) );