@@ -4,7 +4,7 @@ |
||
4 | 4 | { |
5 | 5 | public function testSetupCommand() |
6 | 6 | { |
7 | - $args = array('site' => 'unittest', 'tplsite' => 'unittest', '--option' => 'setup/default/demo:0'); |
|
8 | - $this->assertEquals(0, $this->artisan('aimeos:setup', $args)); |
|
7 | + $args = array( 'site' => 'unittest', 'tplsite' => 'unittest', '--option' => 'setup/default/demo:0' ); |
|
8 | + $this->assertEquals( 0, $this->artisan( 'aimeos:setup', $args ) ); |
|
9 | 9 | } |
10 | 10 | } |
@@ -4,28 +4,28 @@ |
||
4 | 4 | { |
5 | 5 | public function testAccountCommandNew() |
6 | 6 | { |
7 | - $args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test'); |
|
8 | - $this->assertEquals(0, $this->artisan('aimeos:account', $args)); |
|
7 | + $args = array( 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test' ); |
|
8 | + $this->assertEquals( 0, $this->artisan( 'aimeos:account', $args ) ); |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | |
12 | 12 | public function testAccountCommandAdmin() |
13 | 13 | { |
14 | - $args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--admin' => true); |
|
15 | - $this->assertEquals(0, $this->artisan('aimeos:account', $args)); |
|
14 | + $args = array( 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--admin' => true ); |
|
15 | + $this->assertEquals( 0, $this->artisan( 'aimeos:account', $args ) ); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | |
19 | 19 | public function testAccountCommandApi() |
20 | 20 | { |
21 | - $args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--api' => true); |
|
22 | - $this->assertEquals(0, $this->artisan('aimeos:account', $args)); |
|
21 | + $args = array( 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--api' => true ); |
|
22 | + $this->assertEquals( 0, $this->artisan( 'aimeos:account', $args ) ); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | |
26 | 26 | public function testAccountCommandEditor() |
27 | 27 | { |
28 | - $args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--editor' => true); |
|
29 | - $this->assertEquals(0, $this->artisan('aimeos:account', $args)); |
|
28 | + $args = array( 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--editor' => true ); |
|
29 | + $this->assertEquals( 0, $this->artisan( 'aimeos:account', $args ) ); |
|
30 | 30 | } |
31 | 31 | } |
@@ -141,8 +141,8 @@ |
||
141 | 141 | $templatePaths = $aimeos->getCustomPaths( 'admin/jsonadm/templates' ); |
142 | 142 | |
143 | 143 | $context = app( 'aimeos.context' )->get( false, 'backend' ); |
144 | - $context->setI18n( app('aimeos.i18n')->get( array( $lang, 'en' ) ) ); |
|
145 | - $context->setLocale( app('aimeos.locale')->getBackend( $context, $site ) ); |
|
144 | + $context->setI18n( app( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) ); |
|
145 | + $context->setLocale( app( 'aimeos.locale' )->getBackend( $context, $site ) ); |
|
146 | 146 | $context->setView( app( 'aimeos.view' )->create( $context, $templatePaths, $lang ) ); |
147 | 147 | |
148 | 148 | return \Aimeos\Admin\JsonAdm::create( $context, $aimeos, $resource ); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function indexAction() |
32 | 32 | { |
33 | - $default = ['account/profile','account/subscription','account/history','account/favorite','account/watch','basket/mini','catalog/session']; |
|
33 | + $default = ['account/profile', 'account/subscription', 'account/history', 'account/favorite', 'account/watch', 'basket/mini', 'catalog/session']; |
|
34 | 34 | |
35 | 35 | foreach( app( 'config' )->get( 'shop.page.account-index', $default ) as $name ) |
36 | 36 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
39 | 39 | } |
40 | 40 | |
41 | - return Response::view('shop::account.index', $params); |
|
41 | + return Response::view( 'shop::account.index', $params ); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
37 | 37 | } |
38 | 38 | |
39 | - return Response::view('shop::checkout.confirm', $params)->header('Cache-Control', 'no-store'); |
|
39 | + return Response::view( 'shop::checkout.confirm', $params )->header( 'Cache-Control', 'no-store' ); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
54 | 54 | } |
55 | 55 | |
56 | - return Response::view('shop::checkout.index', $params)->header('Cache-Control', 'no-store'); |
|
56 | + return Response::view( 'shop::checkout.index', $params )->header( 'Cache-Control', 'no-store' ); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | |
@@ -70,6 +70,6 @@ discard block |
||
70 | 70 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
71 | 71 | } |
72 | 72 | |
73 | - return Response::view('shop::checkout.update', $params)->header('Cache-Control', 'no-store'); |
|
73 | + return Response::view( 'shop::checkout.update', $params )->header( 'Cache-Control', 'no-store' ); |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | \ No newline at end of file |
@@ -234,8 +234,8 @@ |
||
234 | 234 | $paths = $aimeos->getCustomPaths( 'admin/jqadm/templates' ); |
235 | 235 | |
236 | 236 | $context = app( 'aimeos.context' )->get( false, 'backend' ); |
237 | - $context->setI18n( app('aimeos.i18n')->get( array( $lang, 'en' ) ) ); |
|
238 | - $context->setLocale( app('aimeos.locale')->getBackend( $context, $site ) ); |
|
237 | + $context->setI18n( app( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) ); |
|
238 | + $context->setLocale( app( 'aimeos.locale' )->getBackend( $context, $site ) ); |
|
239 | 239 | |
240 | 240 | $view = app( 'aimeos.view' )->create( $context, $paths, $lang ); |
241 | 241 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function privacyAction() |
31 | 31 | { |
32 | - return View::make('shop::page.privacy'); |
|
32 | + return View::make( 'shop::page.privacy' ); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | |
@@ -40,6 +40,6 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function termsAction() |
42 | 42 | { |
43 | - return View::make('shop::page.terms'); |
|
43 | + return View::make( 'shop::page.terms' ); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | \ No newline at end of file |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
37 | 37 | } |
38 | 38 | |
39 | - return Response::view('shop::catalog.count', $params) |
|
40 | - ->header('Content-Type', 'application/javascript'); |
|
39 | + return Response::view( 'shop::catalog.count', $params ) |
|
40 | + ->header( 'Content-Type', 'application/javascript' ); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function detailAction() |
50 | 50 | { |
51 | - $default = ['basket/mini','catalog/stage','catalog/detail','catalog/session']; |
|
51 | + $default = ['basket/mini', 'catalog/stage', 'catalog/detail', 'catalog/session']; |
|
52 | 52 | |
53 | 53 | foreach( app( 'config' )->get( 'shop.page.catalog-detail', $default ) as $name ) |
54 | 54 | { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
57 | 57 | } |
58 | 58 | |
59 | - return Response::view('shop::catalog.detail', $params); |
|
59 | + return Response::view( 'shop::catalog.detail', $params ); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function listAction() |
69 | 69 | { |
70 | - $default = ['basket/mini','catalog/filter','catalog/lists']; |
|
70 | + $default = ['basket/mini', 'catalog/filter', 'catalog/lists']; |
|
71 | 71 | |
72 | 72 | foreach( app( 'config' )->get( 'shop.page.catalog-list', $default ) as $name ) |
73 | 73 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
76 | 76 | } |
77 | 77 | |
78 | - return Response::view('shop::catalog.list', $params); |
|
78 | + return Response::view( 'shop::catalog.list', $params ); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
93 | 93 | } |
94 | 94 | |
95 | - return Response::view('shop::catalog.stock', $params) |
|
96 | - ->header('Content-Type', 'application/javascript'); |
|
95 | + return Response::view( 'shop::catalog.stock', $params ) |
|
96 | + ->header( 'Content-Type', 'application/javascript' ); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
111 | 111 | } |
112 | 112 | |
113 | - return Response::view('shop::catalog.suggest', $params) |
|
114 | - ->header('Content-Type', 'application/json'); |
|
113 | + return Response::view( 'shop::catalog.suggest', $params ) |
|
114 | + ->header( 'Content-Type', 'application/json' ); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function treeAction() |
124 | 124 | { |
125 | - $default = ['basket/mini','catalog/filter','catalog/stage','catalog/lists']; |
|
125 | + $default = ['basket/mini', 'catalog/filter', 'catalog/stage', 'catalog/lists']; |
|
126 | 126 | |
127 | 127 | foreach( app( 'config' )->get( 'shop.page.catalog-tree', $default ) as $name ) |
128 | 128 | { |
@@ -130,6 +130,6 @@ discard block |
||
130 | 130 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
131 | 131 | } |
132 | 132 | |
133 | - return Response::view('shop::catalog.tree', $params); |
|
133 | + return Response::view( 'shop::catalog.tree', $params ); |
|
134 | 134 | } |
135 | 135 | } |
136 | 136 | \ No newline at end of file |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function indexAction() |
32 | 32 | { |
33 | - $default = ['basket/standard','basket/related']; |
|
33 | + $default = ['basket/standard', 'basket/related']; |
|
34 | 34 | |
35 | 35 | foreach( app( 'config' )->get( 'shop.page.basket-index', $default ) as $name ) |
36 | 36 | { |
@@ -38,6 +38,6 @@ discard block |
||
38 | 38 | $params['aibody'][$name] = Shop::get( $name )->getBody(); |
39 | 39 | } |
40 | 40 | |
41 | - return Response::view('shop::basket.index', $params)->header('Cache-Control', 'no-store'); |
|
41 | + return Response::view( 'shop::basket.index', $params )->header( 'Cache-Control', 'no-store' ); |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 | \ No newline at end of file |