@@ -38,7 +38,7 @@ discard block  | 
                                                    ||
| 38 | 38 | *  | 
                                                        
| 39 | 39 | * @param \Illuminate\Contracts\Config\Repository $config Configuration object  | 
                                                        
| 40 | 40 | */  | 
                                                        
| 41 | - public function __construct( \Illuminate\Contracts\Config\Repository $config )  | 
                                                        |
| 41 | + public function __construct(\Illuminate\Contracts\Config\Repository $config)  | 
                                                        |
| 42 | 42 |  	{ | 
                                                        
| 43 | 43 | $this->config = $config;  | 
                                                        
| 44 | 44 | }  | 
                                                        
@@ -50,25 +50,25 @@ discard block  | 
                                                    ||
| 50 | 50 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object  | 
                                                        
| 51 | 51 | * @return \Aimeos\MShop\Locale\Item\Iface Locale item object  | 
                                                        
| 52 | 52 | */  | 
                                                        
| 53 | - public function get( \Aimeos\MShop\Context\Item\Iface $context )  | 
                                                        |
| 53 | + public function get(\Aimeos\MShop\Context\Item\Iface $context)  | 
                                                        |
| 54 | 54 |  	{ | 
                                                        
| 55 | - if( $this->locale === null )  | 
                                                        |
| 55 | + if ($this->locale === null)  | 
                                                        |
| 56 | 56 |  		{ | 
                                                        
| 57 | - $site = Input::get( 'site', 'default' );  | 
                                                        |
| 58 | - $currency = Input::get( 'currency', '' );  | 
                                                        |
| 59 | - $lang = Input::get( 'locale', '' );  | 
                                                        |
| 57 | +			$site = Input::get('site', 'default'); | 
                                                        |
| 58 | +			$currency = Input::get('currency', ''); | 
                                                        |
| 59 | +			$lang = Input::get('locale', ''); | 
                                                        |
| 60 | 60 | |
| 61 | - if( Route::current() )  | 
                                                        |
| 61 | + if (Route::current())  | 
                                                        |
| 62 | 62 |  			{ | 
                                                        
| 63 | - $site = Route::input( 'site', $site );  | 
                                                        |
| 64 | - $currency = Route::input( 'currency', $currency );  | 
                                                        |
| 65 | - $lang = Route::input( 'locale', $lang );  | 
                                                        |
| 63 | +				$site = Route::input('site', $site); | 
                                                        |
| 64 | +				$currency = Route::input('currency', $currency); | 
                                                        |
| 65 | +				$lang = Route::input('locale', $lang); | 
                                                        |
| 66 | 66 | }  | 
                                                        
| 67 | 67 | |
| 68 | - $disableSites = $this->config->get( 'shop.disableSites', true );  | 
                                                        |
| 68 | +			$disableSites = $this->config->get('shop.disableSites', true); | 
                                                        |
| 69 | 69 | |
| 70 | - $localeManager = \Aimeos\MShop\Locale\Manager\Factory::createManager( $context );  | 
                                                        |
| 71 | - $this->locale = $localeManager->bootstrap( $site, $lang, $currency, $disableSites );  | 
                                                        |
| 70 | + $localeManager = \Aimeos\MShop\Locale\Manager\Factory::createManager($context);  | 
                                                        |
| 71 | + $this->locale = $localeManager->bootstrap($site, $lang, $currency, $disableSites);  | 
                                                        |
| 72 | 72 | }  | 
                                                        
| 73 | 73 | |
| 74 | 74 | return $this->locale;  | 
                                                        
@@ -82,21 +82,21 @@ discard block  | 
                                                    ||
| 82 | 82 | * @param string $site Unique site code  | 
                                                        
| 83 | 83 | * @return \Aimeos\MShop\Locale\Item\Iface Locale item object  | 
                                                        
| 84 | 84 | */  | 
                                                        
| 85 | - public function getBackend( \Aimeos\MShop\Context\Item\Iface $context, $site )  | 
                                                        |
| 85 | + public function getBackend(\Aimeos\MShop\Context\Item\Iface $context, $site)  | 
                                                        |
| 86 | 86 |  	{ | 
                                                        
| 87 | - $localeManager = \Aimeos\MShop\Factory::createManager( $context, 'locale' );  | 
                                                        |
| 87 | + $localeManager = \Aimeos\MShop\Factory::createManager($context, 'locale');  | 
                                                        |
| 88 | 88 | |
| 89 | 89 | try  | 
                                                        
| 90 | 90 |  		{ | 
                                                        
| 91 | - $localeItem = $localeManager->bootstrap( $site, '', '', false );  | 
                                                        |
| 92 | - $localeItem->setLanguageId( null );  | 
                                                        |
| 93 | - $localeItem->setCurrencyId( null );  | 
                                                        |
| 91 | + $localeItem = $localeManager->bootstrap($site, '', '', false);  | 
                                                        |
| 92 | + $localeItem->setLanguageId(null);  | 
                                                        |
| 93 | + $localeItem->setCurrencyId(null);  | 
                                                        |
| 94 | 94 | }  | 
                                                        
| 95 | - catch( \Aimeos\MShop\Locale\Exception $e )  | 
                                                        |
| 95 | + catch (\Aimeos\MShop\Locale\Exception $e)  | 
                                                        |
| 96 | 96 |  		{ | 
                                                        
| 97 | - $item = \Aimeos\MShop\Factory::createManager( $context, 'locale/site' )->findItem( $sitecode );  | 
                                                        |
| 97 | + $item = \Aimeos\MShop\Factory::createManager($context, 'locale/site')->findItem($sitecode);  | 
                                                        |
| 98 | 98 | $localeItem = $localeManager->createItem();  | 
                                                        
| 99 | - $localeItem->setSiteId( $item->getId() );  | 
                                                        |
| 99 | + $localeItem->setSiteId($item->getId());  | 
                                                        |
| 100 | 100 | }  | 
                                                        
| 101 | 101 | |
| 102 | 102 | return $localeItem;  | 
                                                        
@@ -91,8 +91,7 @@  | 
                                                    ||
| 91 | 91 | $localeItem = $localeManager->bootstrap( $site, '', '', false );  | 
                                                        
| 92 | 92 | $localeItem->setLanguageId( null );  | 
                                                        
| 93 | 93 | $localeItem->setCurrencyId( null );  | 
                                                        
| 94 | - }  | 
                                                        |
| 95 | - catch( \Aimeos\MShop\Locale\Exception $e )  | 
                                                        |
| 94 | + } catch( \Aimeos\MShop\Locale\Exception $e )  | 
                                                        |
| 96 | 95 |  		{ | 
                                                        
| 97 | 96 | $item = \Aimeos\MShop\Factory::createManager( $context, 'locale/site' )->findItem( $sitecode );  | 
                                                        
| 98 | 97 | $localeItem = $localeManager->createItem();  |