Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 66-68 (lines=3) @@
63
			{
64
				$i18n = new \Aimeos\MW\Translation\Zend2( $i18nPaths, 'gettext', $langid, array( 'disableNotices' => true ) );
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 ) );

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

@@ 147-149 (lines=3) @@
144
		$configPaths = app( '\Aimeos\Shop\Base\Aimeos' )->get()->getConfigPaths( 'mysql' );
145
		$config = new \Aimeos\MW\Config\PHPArray( $conf, $configPaths );
146
147
		if( function_exists( 'apc_store' ) === true && $this->config->get( 'shop.apc_enabled', false ) == true ) {
148
			$config = new \Aimeos\MW\Config\Decorator\APC( $config, $this->config->get( 'shop.apc_prefix', 'laravel:' ) );
149
		}
150
151
		return $config;
152
	}