Code Duplication    Length = 3-3 lines in 2 locations

src/Base/I18n.php 1 location

@@ 55-57 (lines=3) @@
52
			{
53
				$i18n = new \Aimeos\MW\Translation\Gettext( $i18nPaths, $langid );
54
55
				if( function_exists( 'apc_store' ) === true && $config->get( 'apc_enabled', false ) == true ) {
56
					$i18n = new \Aimeos\MW\Translation\Decorator\APC( $i18n, $config->get( 'apc_prefix', 'slim:' ) );
57
				}
58
59
				if( ( $cfg = $config->get( 'i18n/' . $langid, array() ) ) !== array() ) {
60
					$i18n = new \Aimeos\MW\Translation\Decorator\Memory( $i18n, $cfg );

src/Bootstrap.php 1 location

@@ 107-109 (lines=3) @@
104
105
			$config = new \Aimeos\MW\Config\PHPArray( $settings, $c['aimeos']->getConfigPaths() );
106
107
			if( function_exists( 'apc_store' ) === true && $config->get( 'apc_enabled', false ) == true ) {
108
				$config = new \Aimeos\MW\Config\Decorator\APC( $config, $config->get( 'apc_prefix', 'slim:' ) );
109
			}
110
111
			return $config;
112
		};