Passed
Branch main (f9f23c)
by Aimeos
15:28
created
lib/custom/setup/unittest/data/cms.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
 				'cms.lists.type' => 'default', 'cms.lists.position' => 0,
13 13
 				'text.languageid' => 'en', 'text.type' => 'name', 'text.domain' => 'cms',
14 14
 				'text.label' => 'Contact page', 'text.content' => 'Contact page'
15
-			],[
15
+			], [
16 16
 				'cms.lists.type' => 'default', 'cms.lists.position' => 1,
17 17
 				'text.languageid' => 'en', 'text.type' => 'meta-keywords', 'text.domain' => 'cms',
18 18
 				'text.label' => 'contact', 'text.content' => 'contact, about us'
19
-			],[
19
+			], [
20 20
 				'cms.lists.type' => 'default', 'cms.lists.position' => 1,
21 21
 				'text.languageid' => 'en', 'text.type' => 'content', 'text.domain' => 'cms',
22 22
 				'text.label' => 'Hello', 'text.content' => '<h1>Hello!</h1>'
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
 				'cms.lists.type' => 'default', 'cms.lists.position' => 0,
30 30
 				'text.languageid' => 'de', 'text.type' => 'name', 'text.domain' => 'cms',
31 31
 				'text.label' => 'Kontaktseite', 'text.content' => 'Kontaktseite'
32
-			],[
32
+			], [
33 33
 				'cms.lists.type' => 'default', 'cms.lists.position' => 1,
34 34
 				'text.languageid' => 'de', 'text.type' => 'meta-keywords', 'text.domain' => 'cms',
35 35
 				'text.label' => 'kontakt', 'text.content' => 'kontakt, über uns'
36
-			],[
36
+			], [
37 37
 				'cms.lists.type' => 'default', 'cms.lists.position' => 1,
38 38
 				'text.languageid' => 'de', 'text.type' => 'content', 'text.domain' => 'cms',
39 39
 				'text.label' => 'Hallo', 'text.content' => '<h1>Hallo!</h1>'
Please login to merge, or discard this patch.
lib/custom/setup/unittest/CmsAddTestData.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
 	 */
31 31
 	public function migrate()
32 32
 	{
33
-		\Aimeos\MW\Common\Base::checkClass( \Aimeos\MShop\Context\Item\Iface::class, $this->additional );
33
+		\Aimeos\MW\Common\Base::checkClass(\Aimeos\MShop\Context\Item\Iface::class, $this->additional);
34 34
 
35
-		$this->msg( 'Adding cms test data', 0 );
35
+		$this->msg('Adding cms test data', 0);
36 36
 
37
-		$this->additional->setEditor( 'ai-cms-grapejs:lib/custom' );
38
-		$this->process( $this->getData() );
37
+		$this->additional->setEditor('ai-cms-grapejs:lib/custom');
38
+		$this->process($this->getData());
39 39
 
40
-		$this->status( 'done' );
40
+		$this->status('done');
41 41
 	}
42 42
 
43 43
 
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 	{
51 51
 		$path = __DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'cms.php';
52 52
 
53
-		if( ( $testdata = include( $path ) ) == false ) {
54
-			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for cms domain', $path ) );
53
+		if (($testdata = include($path)) == false) {
54
+			throw new \Aimeos\MShop\Exception(sprintf('No file "%1$s" found for cms domain', $path));
55 55
 		}
56 56
 
57 57
 		return $testdata;
@@ -63,21 +63,21 @@  discard block
 block discarded – undo
63 63
 	 *
64 64
 	 * @param array $testdata Multi-dimensional array of test data
65 65
 	 */
66
-	protected function process( array $testdata )
66
+	protected function process(array $testdata)
67 67
 	{
68
-		$manager = $this->getManager( 'cms' );
69
-		$listManager = $manager->getSubManager( 'lists' );
68
+		$manager = $this->getManager('cms');
69
+		$listManager = $manager->getSubManager('lists');
70 70
 
71 71
 		$manager->begin();
72 72
 
73
-		$this->storeTypes( $testdata, ['cms/lists/type'] );
73
+		$this->storeTypes($testdata, ['cms/lists/type']);
74 74
 
75
-		foreach( $testdata['cms'] as $entry )
75
+		foreach ($testdata['cms'] as $entry)
76 76
 		{
77
-			$item = $manager->create()->fromArray( $entry );
78
-			$item = $this->addListData( $listManager, $item, $entry );
77
+			$item = $manager->create()->fromArray($entry);
78
+			$item = $this->addListData($listManager, $item, $entry);
79 79
 
80
-			$manager->save( $item );
80
+			$manager->save($item);
81 81
 		}
82 82
 
83 83
 		$manager->commit();
Please login to merge, or discard this patch.
lib/custom/setup/TablesCreateCms.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
 	 */
20 20
 	public function migrate()
21 21
 	{
22
-		$this->msg( 'Creating CMS tables', 0, '' );
22
+		$this->msg('Creating CMS tables', 0, '');
23 23
 
24 24
 		$ds = DIRECTORY_SEPARATOR;
25
-		$this->setupSchema( ['db-cms' => 'default' . $ds . 'schema' . $ds . 'cms.php'] );
25
+		$this->setupSchema(['db-cms' => 'default' . $ds . 'schema' . $ds . 'cms.php']);
26 26
 	}
27 27
 }
Please login to merge, or discard this patch.
lib/custom/setup/MShopAddTypeDataCms.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,20 +30,20 @@
 block discarded – undo
30 30
 	 */
31 31
 	public function migrate()
32 32
 	{
33
-		\Aimeos\MW\Common\Base::checkClass( \Aimeos\MShop\Context\Item\Iface::class, $this->additional );
33
+		\Aimeos\MW\Common\Base::checkClass(\Aimeos\MShop\Context\Item\Iface::class, $this->additional);
34 34
 
35
-		$this->additional->setEditor( 'ai-cms-grapejs:lib/custom' );
35
+		$this->additional->setEditor('ai-cms-grapejs:lib/custom');
36 36
 		$sitecode = $this->additional->getLocale()->getSiteItem()->getCode();
37
-		$this->msg( sprintf( 'Adding CMS type data for site "%1$s"', $sitecode ), 0, '' );
37
+		$this->msg(sprintf('Adding CMS type data for site "%1$s"', $sitecode), 0, '');
38 38
 
39 39
 
40 40
 		$ds = DIRECTORY_SEPARATOR;
41 41
 		$filename = __DIR__ . $ds . 'default' . $ds . 'data' . $ds . 'type.php';
42 42
 
43
-		if( ( $testdata = include( $filename ) ) == false ) {
44
-			throw new \Aimeos\MShop\Exception( sprintf( 'No type file found in "%1$s"', $filename ) );
43
+		if (($testdata = include($filename)) == false) {
44
+			throw new \Aimeos\MShop\Exception(sprintf('No type file found in "%1$s"', $filename));
45 45
 		}
46 46
 
47
-		$this->processFile( $testdata );
47
+		$this->processFile($testdata);
48 48
 	}
49 49
 }
Please login to merge, or discard this patch.
client/jsonapi/tests/Client/Html/DemoTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 	protected function setUp() : void
14 14
 	{
15
-		\Aimeos\MShop::cache( true );
15
+		\Aimeos\MShop::cache(true);
16 16
 
17 17
 		$this->context = \TestHelperJapi::getContext();
18 18
 		$paths = \TestHelperJapi::getTemplatePaths();
@@ -24,14 +24,14 @@  discard block
 block discarded – undo
24 24
 
25 25
 	protected function tearDown() : void
26 26
 	{
27
-		\Aimeos\MShop::cache( false );
27
+		\Aimeos\MShop::cache(false);
28 28
 
29
-		unset( $this->object );
29
+		unset($this->object);
30 30
 	}
31 31
 
32 32
 
33 33
 	public function testDemo()
34 34
 	{
35
-		$this->markTestIncomplete( 'Just a demo' );
35
+		$this->markTestIncomplete('Just a demo');
36 36
 	}
37 37
 }
Please login to merge, or discard this patch.
client/jsonapi/tests/TestHelperJapi.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -13,16 +13,16 @@  discard block
 block discarded – undo
13 13
 
14 14
 		$includepaths = $aimeos->getIncludePaths();
15 15
 		$includepaths[] = get_include_path();
16
-		set_include_path( implode( PATH_SEPARATOR, $includepaths ) );
16
+		set_include_path(implode(PATH_SEPARATOR, $includepaths));
17 17
 	}
18 18
 
19 19
 
20 20
 	private static function getAimeos()
21 21
 	{
22
-		if( !isset( self::$aimeos ) )
22
+		if (!isset(self::$aimeos))
23 23
 		{
24 24
 			require_once 'Bootstrap.php';
25
-			spl_autoload_register( 'Aimeos\\Bootstrap::autoload' );
25
+			spl_autoload_register('Aimeos\\Bootstrap::autoload');
26 26
 
27 27
 			self::$aimeos = new \Aimeos\Bootstrap();
28 28
 		}
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
 	}
32 32
 
33 33
 
34
-	public static function getContext( $site = 'unittest' )
34
+	public static function getContext($site = 'unittest')
35 35
 	{
36
-		if( !isset( self::$context[$site] ) ) {
37
-			self::$context[$site] = self::createContext( $site );
36
+		if (!isset(self::$context[$site])) {
37
+			self::$context[$site] = self::createContext($site);
38 38
 		}
39 39
 
40 40
 		return clone self::$context[$site];
@@ -43,23 +43,23 @@  discard block
 block discarded – undo
43 43
 
44 44
 	public static function getView()
45 45
 	{
46
-		$view = new \Aimeos\MW\View\Standard( self::getTemplatePaths() );
46
+		$view = new \Aimeos\MW\View\Standard(self::getTemplatePaths());
47 47
 
48
-		$trans = new \Aimeos\MW\Translation\None( 'en' );
49
-		$helper = new \Aimeos\MW\View\Helper\Translate\Standard( $view, $trans );
50
-		$view->addHelper( 'translate', $helper );
48
+		$trans = new \Aimeos\MW\Translation\None('en');
49
+		$helper = new \Aimeos\MW\View\Helper\Translate\Standard($view, $trans);
50
+		$view->addHelper('translate', $helper);
51 51
 
52
-		$helper = new \Aimeos\MW\View\Helper\Url\Standard( $view, 'baseurl' );
53
-		$view->addHelper( 'url', $helper );
52
+		$helper = new \Aimeos\MW\View\Helper\Url\Standard($view, 'baseurl');
53
+		$view->addHelper('url', $helper);
54 54
 
55
-		$helper = new \Aimeos\MW\View\Helper\Number\Standard( $view, '.', '' );
56
-		$view->addHelper( 'number', $helper );
55
+		$helper = new \Aimeos\MW\View\Helper\Number\Standard($view, '.', '');
56
+		$view->addHelper('number', $helper);
57 57
 
58
-		$helper = new \Aimeos\MW\View\Helper\Date\Standard( $view, 'Y-m-d' );
59
-		$view->addHelper( 'date', $helper );
58
+		$helper = new \Aimeos\MW\View\Helper\Date\Standard($view, 'Y-m-d');
59
+		$view->addHelper('date', $helper);
60 60
 
61
-		$helper = new \Aimeos\MW\View\Helper\Config\Standard( $view, self::getContext()->getConfig() );
62
-		$view->addHelper( 'config', $helper );
61
+		$helper = new \Aimeos\MW\View\Helper\Config\Standard($view, self::getContext()->getConfig());
62
+		$view->addHelper('config', $helper);
63 63
 
64 64
 		return $view;
65 65
 	}
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
 
68 68
 	public static function getTemplatePaths()
69 69
 	{
70
-		return self::getAimeos()->getCustomPaths( 'client/jsonapi/templates' );
70
+		return self::getAimeos()->getCustomPaths('client/jsonapi/templates');
71 71
 	}
72 72
 
73 73
 
74
-	private static function createContext( $site )
74
+	private static function createContext($site)
75 75
 	{
76 76
 		$ctx = new \Aimeos\MShop\Context\Item\Standard();
77 77
 		$aimeos = self::getAimeos();
@@ -80,36 +80,36 @@  discard block
 block discarded – undo
80 80
 		$paths = $aimeos->getConfigPaths();
81 81
 		$paths[] = __DIR__ . DIRECTORY_SEPARATOR . 'config';
82 82
 
83
-		$conf = new \Aimeos\MW\Config\PHPArray( array(), $paths );
84
-		$ctx->setConfig( $conf );
83
+		$conf = new \Aimeos\MW\Config\PHPArray(array(), $paths);
84
+		$ctx->setConfig($conf);
85 85
 
86 86
 
87
-		$dbm = new \Aimeos\MW\DB\Manager\DBAL( $conf );
88
-		$ctx->setDatabaseManager( $dbm );
87
+		$dbm = new \Aimeos\MW\DB\Manager\DBAL($conf);
88
+		$ctx->setDatabaseManager($dbm);
89 89
 
90 90
 
91
-		$logger = new \Aimeos\MW\Logger\File( $site . '.log', \Aimeos\MW\Logger\Base::DEBUG );
92
-		$ctx->setLogger( $logger );
91
+		$logger = new \Aimeos\MW\Logger\File($site . '.log', \Aimeos\MW\Logger\Base::DEBUG);
92
+		$ctx->setLogger($logger);
93 93
 
94 94
 
95 95
 		$cache = new \Aimeos\MW\Cache\None();
96
-		$ctx->setCache( $cache );
96
+		$ctx->setCache($cache);
97 97
 
98 98
 
99
-		$i18n = new \Aimeos\MW\Translation\None( 'en' );
100
-		$ctx->setI18n( array( 'en' => $i18n ) );
99
+		$i18n = new \Aimeos\MW\Translation\None('en');
100
+		$ctx->setI18n(array('en' => $i18n));
101 101
 
102 102
 
103 103
 		$session = new \Aimeos\MW\Session\None();
104
-		$ctx->setSession( $session );
104
+		$ctx->setSession($session);
105 105
 
106 106
 
107
-		$localeManager = \Aimeos\MShop\Locale\Manager\Factory::create( $ctx );
108
-		$locale = $localeManager->bootstrap( $site, '', '', false );
109
-		$ctx->setLocale( $locale );
107
+		$localeManager = \Aimeos\MShop\Locale\Manager\Factory::create($ctx);
108
+		$locale = $localeManager->bootstrap($site, '', '', false);
109
+		$ctx->setLocale($locale);
110 110
 
111 111
 
112
-		$ctx->setEditor( 'ai-cms-grapesjs:client/jsonapi' );
112
+		$ctx->setEditor('ai-cms-grapesjs:client/jsonapi');
113 113
 
114 114
 		return $ctx;
115 115
 	}
Please login to merge, or discard this patch.
client/jsonapi/tests/bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,17 +4,17 @@
 block discarded – undo
4 4
  * Set error reporting to maximum
5 5
  */
6 6
 error_reporting( -1 );
7
-ini_set( 'display_errors', true );
7
+ini_set('display_errors', true);
8 8
 
9
-date_default_timezone_set( 'UTC' );
9
+date_default_timezone_set('UTC');
10 10
 
11 11
 /*
12 12
  * Set locale settings to reasonable defaults
13 13
  */
14
-setlocale( LC_ALL, 'en_US.UTF-8' );
15
-setlocale( LC_CTYPE, 'en_US.UTF-8' );
16
-setlocale( LC_NUMERIC, 'POSIX' );
17
-setlocale( LC_TIME, 'POSIX' );
14
+setlocale(LC_ALL, 'en_US.UTF-8');
15
+setlocale(LC_CTYPE, 'en_US.UTF-8');
16
+setlocale(LC_NUMERIC, 'POSIX');
17
+setlocale(LC_TIME, 'POSIX');
18 18
 
19 19
 
20 20
 require_once 'TestHelperJapi.php';
Please login to merge, or discard this patch.
client/html/tests/Client/Html/DemoTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	 */
16 16
 	protected function setUp() : void
17 17
 	{
18
-		\Aimeos\MShop::cache( true );
18
+		\Aimeos\MShop::cache(true);
19 19
 
20 20
 		$this->context = \TestHelperHtml::getContext();
21 21
 		$paths = \TestHelperHtml::getHtmlTemplatePaths();
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
 	 */
32 32
 	protected function tearDown() : void
33 33
 	{
34
-		\Aimeos\MShop::cache( false );
34
+		\Aimeos\MShop::cache(false);
35 35
 
36
-		unset( $this->object );
36
+		unset($this->object);
37 37
 	}
38 38
 
39 39
 
40 40
 	public function testDemo()
41 41
 	{
42
-		$this->markTestIncomplete( 'Just a demo' );
42
+		$this->markTestIncomplete('Just a demo');
43 43
 	}
44 44
 }
Please login to merge, or discard this patch.
client/html/tests/TestHelperHtml.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -13,16 +13,16 @@  discard block
 block discarded – undo
13 13
 
14 14
 		$includepaths = $aimeos->getIncludePaths();
15 15
 		$includepaths[] = get_include_path();
16
-		set_include_path( implode( PATH_SEPARATOR, $includepaths ) );
16
+		set_include_path(implode(PATH_SEPARATOR, $includepaths));
17 17
 	}
18 18
 
19 19
 
20 20
 	private static function getAimeos()
21 21
 	{
22
-		if( !isset( self::$aimeos ) )
22
+		if (!isset(self::$aimeos))
23 23
 		{
24 24
 			require_once 'Bootstrap.php';
25
-			spl_autoload_register( 'Aimeos\\Bootstrap::autoload' );
25
+			spl_autoload_register('Aimeos\\Bootstrap::autoload');
26 26
 
27 27
 			self::$aimeos = new \Aimeos\Bootstrap();
28 28
 		}
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
 	}
32 32
 
33 33
 
34
-	public static function getContext( $site = 'unittest' )
34
+	public static function getContext($site = 'unittest')
35 35
 	{
36
-		if( !isset( self::$context[$site] ) ) {
37
-			self::$context[$site] = self::createContext( $site );
36
+		if (!isset(self::$context[$site])) {
37
+			self::$context[$site] = self::createContext($site);
38 38
 		}
39 39
 
40 40
 		return clone self::$context[$site];
@@ -43,23 +43,23 @@  discard block
 block discarded – undo
43 43
 
44 44
 	public static function getView()
45 45
 	{
46
-		$view = new \Aimeos\MW\View\Standard( self::getHtmlTemplatePaths() );
46
+		$view = new \Aimeos\MW\View\Standard(self::getHtmlTemplatePaths());
47 47
 
48
-		$trans = new \Aimeos\MW\Translation\None( 'en' );
49
-		$helper = new \Aimeos\MW\View\Helper\Translate\Standard( $view, $trans );
50
-		$view->addHelper( 'translate', $helper );
48
+		$trans = new \Aimeos\MW\Translation\None('en');
49
+		$helper = new \Aimeos\MW\View\Helper\Translate\Standard($view, $trans);
50
+		$view->addHelper('translate', $helper);
51 51
 
52
-		$helper = new \Aimeos\MW\View\Helper\Url\Standard( $view, 'baseurl' );
53
-		$view->addHelper( 'url', $helper );
52
+		$helper = new \Aimeos\MW\View\Helper\Url\Standard($view, 'baseurl');
53
+		$view->addHelper('url', $helper);
54 54
 
55
-		$helper = new \Aimeos\MW\View\Helper\Number\Standard( $view, '.', '' );
56
-		$view->addHelper( 'number', $helper );
55
+		$helper = new \Aimeos\MW\View\Helper\Number\Standard($view, '.', '');
56
+		$view->addHelper('number', $helper);
57 57
 
58
-		$helper = new \Aimeos\MW\View\Helper\Date\Standard( $view, 'Y-m-d' );
59
-		$view->addHelper( 'date', $helper );
58
+		$helper = new \Aimeos\MW\View\Helper\Date\Standard($view, 'Y-m-d');
59
+		$view->addHelper('date', $helper);
60 60
 
61
-		$helper = new \Aimeos\MW\View\Helper\Config\Standard( $view, self::getContext()->getConfig() );
62
-		$view->addHelper( 'config', $helper );
61
+		$helper = new \Aimeos\MW\View\Helper\Config\Standard($view, self::getContext()->getConfig());
62
+		$view->addHelper('config', $helper);
63 63
 
64 64
 		return $view;
65 65
 	}
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
 
68 68
 	public static function getHtmlTemplatePaths()
69 69
 	{
70
-		return self::getAimeos()->getCustomPaths( 'client/html/templates' );
70
+		return self::getAimeos()->getCustomPaths('client/html/templates');
71 71
 	}
72 72
 
73 73
 
74
-	private static function createContext( $site )
74
+	private static function createContext($site)
75 75
 	{
76 76
 		$ctx = new \Aimeos\MShop\Context\Item\Standard();
77 77
 		$aimeos = self::getAimeos();
@@ -80,36 +80,36 @@  discard block
 block discarded – undo
80 80
 		$paths = $aimeos->getConfigPaths();
81 81
 		$paths[] = __DIR__ . DIRECTORY_SEPARATOR . 'config';
82 82
 
83
-		$conf = new \Aimeos\MW\Config\PHPArray( array(), $paths );
84
-		$ctx->setConfig( $conf );
83
+		$conf = new \Aimeos\MW\Config\PHPArray(array(), $paths);
84
+		$ctx->setConfig($conf);
85 85
 
86 86
 
87
-		$dbm = new \Aimeos\MW\DB\Manager\DBAL( $conf );
88
-		$ctx->setDatabaseManager( $dbm );
87
+		$dbm = new \Aimeos\MW\DB\Manager\DBAL($conf);
88
+		$ctx->setDatabaseManager($dbm);
89 89
 
90 90
 
91
-		$logger = new \Aimeos\MW\Logger\File( $site . '.log', \Aimeos\MW\Logger\Base::DEBUG );
92
-		$ctx->setLogger( $logger );
91
+		$logger = new \Aimeos\MW\Logger\File($site . '.log', \Aimeos\MW\Logger\Base::DEBUG);
92
+		$ctx->setLogger($logger);
93 93
 
94 94
 
95 95
 		$cache = new \Aimeos\MW\Cache\None();
96
-		$ctx->setCache( $cache );
96
+		$ctx->setCache($cache);
97 97
 
98 98
 
99
-		$i18n = new \Aimeos\MW\Translation\None( 'en' );
100
-		$ctx->setI18n( array( 'en' => $i18n ) );
99
+		$i18n = new \Aimeos\MW\Translation\None('en');
100
+		$ctx->setI18n(array('en' => $i18n));
101 101
 
102 102
 
103 103
 		$session = new \Aimeos\MW\Session\None();
104
-		$ctx->setSession( $session );
104
+		$ctx->setSession($session);
105 105
 
106 106
 
107
-		$localeManager = \Aimeos\MShop\Locale\Manager\Factory::create( $ctx );
108
-		$locale = $localeManager->bootstrap( $site, '', '', false );
109
-		$ctx->setLocale( $locale );
107
+		$localeManager = \Aimeos\MShop\Locale\Manager\Factory::create($ctx);
108
+		$locale = $localeManager->bootstrap($site, '', '', false);
109
+		$ctx->setLocale($locale);
110 110
 
111 111
 
112
-		$ctx->setEditor( 'ai-cms-grapesjs:client/html' );
112
+		$ctx->setEditor('ai-cms-grapesjs:client/html');
113 113
 
114 114
 		return $ctx;
115 115
 	}
Please login to merge, or discard this patch.