@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | Route::group(config('shop.routes.login', ['middleware' => ['web']]), function() { |
4 | 4 | |
5 | - Route::match( array( 'GET' ), 'admin', array( |
|
5 | + Route::match(array('GET'), 'admin', array( |
|
6 | 6 | 'as' => 'aimeos_shop_admin', |
7 | 7 | 'uses' => 'Aimeos\Shop\Controller\AdminController@indexAction' |
8 | 8 | )); |
@@ -12,104 +12,104 @@ discard block |
||
12 | 12 | |
13 | 13 | Route::group(config('shop.routes.admin', ['middleware' => ['web', 'auth']]), function() { |
14 | 14 | |
15 | - Route::match( array( 'GET' ), 'extadm', array( |
|
15 | + Route::match(array('GET'), 'extadm', array( |
|
16 | 16 | 'as' => 'aimeos_shop_extadm', |
17 | 17 | 'uses' => 'Aimeos\Shop\Controller\ExtadmController@indexAction' |
18 | 18 | )); |
19 | 19 | |
20 | - Route::match( array( 'GET' ), 'extadm/file', array( |
|
20 | + Route::match(array('GET'), 'extadm/file', array( |
|
21 | 21 | 'as' => 'aimeos_shop_extadm_file', |
22 | 22 | 'uses' => 'Aimeos\Shop\Controller\ExtadmController@fileAction' |
23 | 23 | )); |
24 | 24 | |
25 | - Route::match( array( 'POST' ), 'extadm/do', array( |
|
25 | + Route::match(array('POST'), 'extadm/do', array( |
|
26 | 26 | 'as' => 'aimeos_shop_extadm_json', |
27 | 27 | 'uses' => 'Aimeos\Shop\Controller\ExtadmController@doAction' |
28 | 28 | )); |
29 | 29 | |
30 | 30 | |
31 | - Route::match( array( 'GET', 'POST' ), 'jqadm/copy/{resource}/{id}', array( |
|
31 | + Route::match(array('GET', 'POST'), 'jqadm/copy/{resource}/{id}', array( |
|
32 | 32 | 'as' => 'aimeos_shop_jqadm_copy', |
33 | 33 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@copyAction' |
34 | - ))->where( array( 'resource' => '[^0-9]+', 'id' => '[0-9]+' ) ); |
|
34 | + ))->where(array('resource' => '[^0-9]+', 'id' => '[0-9]+')); |
|
35 | 35 | |
36 | - Route::match( array( 'GET', 'POST' ), 'jqadm/create/{resource}', array( |
|
36 | + Route::match(array('GET', 'POST'), 'jqadm/create/{resource}', array( |
|
37 | 37 | 'as' => 'aimeos_shop_jqadm_create', |
38 | 38 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@createAction' |
39 | - ))->where( array( 'resource' => '[^0-9]+' ) ); |
|
39 | + ))->where(array('resource' => '[^0-9]+')); |
|
40 | 40 | |
41 | - Route::match( array( 'GET', 'POST' ), 'jqadm/delete/{resource}/{id}', array( |
|
41 | + Route::match(array('GET', 'POST'), 'jqadm/delete/{resource}/{id}', array( |
|
42 | 42 | 'as' => 'aimeos_shop_jqadm_delete', |
43 | 43 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@deleteAction' |
44 | - ))->where( array( 'resource' => '[^0-9]+', 'id' => '[0-9]+' ) ); |
|
44 | + ))->where(array('resource' => '[^0-9]+', 'id' => '[0-9]+')); |
|
45 | 45 | |
46 | - Route::match( array( 'GET' ), 'jqadm/get/{resource}/{id}', array( |
|
46 | + Route::match(array('GET'), 'jqadm/get/{resource}/{id}', array( |
|
47 | 47 | 'as' => 'aimeos_shop_jqadm_get', |
48 | 48 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@getAction' |
49 | - ))->where( array( 'resource' => '[^0-9]*', 'id' => '[0-9]+' ) ); |
|
49 | + ))->where(array('resource' => '[^0-9]*', 'id' => '[0-9]+')); |
|
50 | 50 | |
51 | - Route::match( array( 'POST' ), 'jqadm/save/{resource}/{id?}', array( |
|
51 | + Route::match(array('POST'), 'jqadm/save/{resource}/{id?}', array( |
|
52 | 52 | 'as' => 'aimeos_shop_jqadm_save', |
53 | 53 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@saveAction' |
54 | - ))->where( array( 'resource' => '[^0-9]+', 'id' => '[0-9]*' ) ); |
|
54 | + ))->where(array('resource' => '[^0-9]+', 'id' => '[0-9]*')); |
|
55 | 55 | |
56 | - Route::match( array( 'GET', 'POST' ), 'jqadm/search/{resource}', array( |
|
56 | + Route::match(array('GET', 'POST'), 'jqadm/search/{resource}', array( |
|
57 | 57 | 'as' => 'aimeos_shop_jqadm_search', |
58 | 58 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@searchAction' |
59 | - ))->where( array( 'resource' => '[^0-9]+' ) ); |
|
59 | + ))->where(array('resource' => '[^0-9]+')); |
|
60 | 60 | |
61 | 61 | |
62 | - Route::match( array( 'DELETE' ), 'jsonadm/{resource}/{id?}', array( |
|
62 | + Route::match(array('DELETE'), 'jsonadm/{resource}/{id?}', array( |
|
63 | 63 | 'as' => 'aimeos_shop_jsonadm_delete', |
64 | 64 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@deleteAction' |
65 | - ))->where( array( 'resource' => '[^0-9]+', 'id' => '[0-9]*' ) ); |
|
65 | + ))->where(array('resource' => '[^0-9]+', 'id' => '[0-9]*')); |
|
66 | 66 | |
67 | - Route::match( array( 'GET' ), 'jsonadm/{resource}/{id?}', array( |
|
67 | + Route::match(array('GET'), 'jsonadm/{resource}/{id?}', array( |
|
68 | 68 | 'as' => 'aimeos_shop_jsonadm_get', |
69 | 69 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@getAction' |
70 | - ))->where( array( 'resource' => '[^0-9]+', 'id' => '[0-9]*' ) ); |
|
70 | + ))->where(array('resource' => '[^0-9]+', 'id' => '[0-9]*')); |
|
71 | 71 | |
72 | - Route::match( array( 'PATCH' ), 'jsonadm/{resource}/{id?}', array( |
|
72 | + Route::match(array('PATCH'), 'jsonadm/{resource}/{id?}', array( |
|
73 | 73 | 'as' => 'aimeos_shop_jsonadm_patch', |
74 | 74 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@patchAction' |
75 | - ))->where( array( 'resource' => '[^0-9]+', 'id' => '[0-9]*' ) ); |
|
75 | + ))->where(array('resource' => '[^0-9]+', 'id' => '[0-9]*')); |
|
76 | 76 | |
77 | - Route::match( array( 'POST' ), 'jsonadm/{resource}/{id?}', array( |
|
77 | + Route::match(array('POST'), 'jsonadm/{resource}/{id?}', array( |
|
78 | 78 | 'as' => 'aimeos_shop_jsonadm_post', |
79 | 79 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@postAction' |
80 | - ))->where( array( 'resource' => '[^0-9]+', 'id' => '[0-9]*' ) ); |
|
80 | + ))->where(array('resource' => '[^0-9]+', 'id' => '[0-9]*')); |
|
81 | 81 | |
82 | - Route::match( array( 'PUT' ), 'jsonadm/{resource}/{id?}', array( |
|
82 | + Route::match(array('PUT'), 'jsonadm/{resource}/{id?}', array( |
|
83 | 83 | 'as' => 'aimeos_shop_jsonadm_put', |
84 | 84 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@putAction' |
85 | - ))->where( array( 'resource' => '[^0-9]+', 'id' => '[0-9]*' ) ); |
|
85 | + ))->where(array('resource' => '[^0-9]+', 'id' => '[0-9]*')); |
|
86 | 86 | |
87 | - Route::match( array( 'OPTIONS' ), 'jsonadm/{resource?}', array( |
|
87 | + Route::match(array('OPTIONS'), 'jsonadm/{resource?}', array( |
|
88 | 88 | 'as' => 'aimeos_shop_jsonadm_options', |
89 | 89 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@optionsAction' |
90 | - ))->where( array( 'resource' => '[^0-9]*' ) ); |
|
90 | + ))->where(array('resource' => '[^0-9]*')); |
|
91 | 91 | |
92 | 92 | }); |
93 | 93 | |
94 | 94 | |
95 | 95 | Route::group(config('shop.routes.account', ['middleware' => ['web', 'auth']]), function() { |
96 | 96 | |
97 | - Route::match( array( 'GET', 'POST' ), 'myaccount', array( |
|
97 | + Route::match(array('GET', 'POST'), 'myaccount', array( |
|
98 | 98 | 'as' => 'aimeos_shop_account', |
99 | 99 | 'uses' => 'Aimeos\Shop\Controller\AccountController@indexAction' |
100 | 100 | )); |
101 | 101 | |
102 | - Route::match( array( 'GET', 'POST' ), 'myaccount/favorite/{fav_action?}/{fav_id?}/{d_prodid?}/{d_name?}/{l_pos?}', array( |
|
102 | + Route::match(array('GET', 'POST'), 'myaccount/favorite/{fav_action?}/{fav_id?}/{d_prodid?}/{d_name?}/{l_pos?}', array( |
|
103 | 103 | 'as' => 'aimeos_shop_account_favorite', |
104 | 104 | 'uses' => 'Aimeos\Shop\Controller\AccountController@indexAction' |
105 | 105 | )); |
106 | 106 | |
107 | - Route::match( array( 'GET', 'POST' ), 'myaccount/watch/{wat_action?}/{wat_id?}/{d_prodid?}/{d_name?}/{l_pos?}', array( |
|
107 | + Route::match(array('GET', 'POST'), 'myaccount/watch/{wat_action?}/{wat_id?}/{d_prodid?}/{d_name?}/{l_pos?}', array( |
|
108 | 108 | 'as' => 'aimeos_shop_account_watch', |
109 | 109 | 'uses' => 'Aimeos\Shop\Controller\AccountController@indexAction' |
110 | 110 | )); |
111 | 111 | |
112 | - Route::match( array( 'GET', 'POST' ), 'myaccount/download/{dl_id}', array( |
|
112 | + Route::match(array('GET', 'POST'), 'myaccount/download/{dl_id}', array( |
|
113 | 113 | 'as' => 'aimeos_shop_download', |
114 | 114 | 'uses' => 'Aimeos\Shop\Controller\AccountController@downloadAction' |
115 | 115 | )); |
@@ -119,42 +119,42 @@ discard block |
||
119 | 119 | |
120 | 120 | Route::group(config('shop.routes.default', ['middleware' => ['web']]), function() { |
121 | 121 | |
122 | - Route::match( array( 'GET', 'POST' ), 'count', array( |
|
122 | + Route::match(array('GET', 'POST'), 'count', array( |
|
123 | 123 | 'as' => 'aimeos_shop_count', |
124 | 124 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@countAction' |
125 | 125 | )); |
126 | 126 | |
127 | - Route::match( array( 'GET', 'POST' ), 'detail/{d_prodid}/{d_name?}/{l_pos?}', array( |
|
127 | + Route::match(array('GET', 'POST'), 'detail/{d_prodid}/{d_name?}/{l_pos?}', array( |
|
128 | 128 | 'as' => 'aimeos_shop_detail', |
129 | 129 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@detailAction' |
130 | 130 | )); |
131 | 131 | |
132 | - Route::match( array( 'GET', 'POST' ), 'detail/pin/{pin_action?}/{pin_id?}/{d_prodid?}/{d_name?}/{l_pos?}', array( |
|
132 | + Route::match(array('GET', 'POST'), 'detail/pin/{pin_action?}/{pin_id?}/{d_prodid?}/{d_name?}/{l_pos?}', array( |
|
133 | 133 | 'as' => 'aimeos_shop_session_pinned', |
134 | 134 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@detailAction' |
135 | 135 | )); |
136 | 136 | |
137 | - Route::match( array( 'GET', 'POST' ), 'list', array( |
|
137 | + Route::match(array('GET', 'POST'), 'list', array( |
|
138 | 138 | 'as' => 'aimeos_shop_list', |
139 | 139 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@listAction' |
140 | 140 | )); |
141 | 141 | |
142 | - Route::match( array( 'GET', 'POST' ), 'suggest', array( |
|
142 | + Route::match(array('GET', 'POST'), 'suggest', array( |
|
143 | 143 | 'as' => 'aimeos_shop_suggest', |
144 | 144 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@suggestAction' |
145 | 145 | )); |
146 | 146 | |
147 | - Route::match( array( 'GET', 'POST' ), 'stock', array( |
|
147 | + Route::match(array('GET', 'POST'), 'stock', array( |
|
148 | 148 | 'as' => 'aimeos_shop_stock', |
149 | 149 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@stockAction' |
150 | 150 | )); |
151 | 151 | |
152 | - Route::match( array( 'GET', 'POST' ), 'basket', array( |
|
152 | + Route::match(array('GET', 'POST'), 'basket', array( |
|
153 | 153 | 'as' => 'aimeos_shop_basket', |
154 | 154 | 'uses' => 'Aimeos\Shop\Controller\BasketController@indexAction' |
155 | 155 | )); |
156 | 156 | |
157 | - Route::match( array( 'GET', 'POST' ), 'checkout/{c_step?}', array( |
|
157 | + Route::match(array('GET', 'POST'), 'checkout/{c_step?}', array( |
|
158 | 158 | 'as' => 'aimeos_shop_checkout', |
159 | 159 | 'uses' => 'Aimeos\Shop\Controller\CheckoutController@indexAction' |
160 | 160 | )); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | Route::group(config('shop.routes.confirm', ['middleware' => ['web']]), function() { |
166 | 166 | |
167 | - Route::match( array( 'GET', 'POST' ), 'confirm', array( |
|
167 | + Route::match(array('GET', 'POST'), 'confirm', array( |
|
168 | 168 | 'as' => 'aimeos_shop_confirm', |
169 | 169 | 'uses' => 'Aimeos\Shop\Controller\CheckoutController@confirmAction' |
170 | 170 | )); |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | Route::group(config('shop.routes.update', []), function() { |
176 | 176 | |
177 | - Route::match( array( 'GET', 'POST' ), 'update', array( |
|
177 | + Route::match(array('GET', 'POST'), 'update', array( |
|
178 | 178 | 'as' => 'aimeos_shop_update', |
179 | 179 | 'uses' => 'Aimeos\Shop\Controller\CheckoutController@updateAction' |
180 | 180 | )); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function indexAction() |
32 | 32 | { |
33 | - $params = app( '\Aimeos\Shop\Base\Page' )->getSections( 'account-index' ); |
|
33 | + $params = app('\Aimeos\Shop\Base\Page')->getSections('account-index'); |
|
34 | 34 | return View::make('shop::account.index', $params); |
35 | 35 | } |
36 | 36 | |
@@ -42,17 +42,17 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function downloadAction() |
44 | 44 | { |
45 | - $context = app( '\Aimeos\Shop\Base\Context' )->get(); |
|
45 | + $context = app('\Aimeos\Shop\Base\Context')->get(); |
|
46 | 46 | $langid = $context->getLocale()->getLanguageId(); |
47 | 47 | |
48 | - $view = app( '\Aimeos\Shop\Base\View' )->create( $context->getConfig(), array(), $langid ); |
|
49 | - $context->setView( $view ); |
|
48 | + $view = app('\Aimeos\Shop\Base\View')->create($context->getConfig(), array(), $langid); |
|
49 | + $context->setView($view); |
|
50 | 50 | |
51 | - $client = \Aimeos\Client\Html\Factory::createClient( $context, array(), 'account/download' ); |
|
52 | - $client->setView( $view ); |
|
51 | + $client = \Aimeos\Client\Html\Factory::createClient($context, array(), 'account/download'); |
|
52 | + $client->setView($view); |
|
53 | 53 | $client->process(); |
54 | 54 | |
55 | 55 | $response = $view->response(); |
56 | - return Response::make( (string) $response->getBody(), $response->getStatusCode(), $response->getHeaders() ); |
|
56 | + return Response::make((string) $response->getBody(), $response->getStatusCode(), $response->getHeaders()); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 | \ No newline at end of file |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | return array( |
4 | 4 | 'apc_enabled' => false, |
5 | 5 | 'apc_prefix' => 'laravel:', |
6 | - 'extdir' => ( is_dir(base_path('ext')) ? base_path('ext') : dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'ext' ), |
|
6 | + 'extdir' => (is_dir(base_path('ext')) ? base_path('ext') : dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'ext'), |
|
7 | 7 | 'uploaddir' => '/', |
8 | 8 | |
9 | 9 | 'routes' => array( |
@@ -16,16 +16,16 @@ discard block |
||
16 | 16 | ), |
17 | 17 | |
18 | 18 | 'page' => array( |
19 | - 'account-index' => array( 'account/history','account/favorite','account/watch','basket/mini','catalog/session' ), |
|
20 | - 'basket-index' => array( 'basket/standard','basket/related' ), |
|
21 | - 'catalog-count' => array( 'catalog/count' ), |
|
22 | - 'catalog-detail' => array( 'basket/mini','catalog/stage','catalog/detail','catalog/session' ), |
|
23 | - 'catalog-list' => array( 'basket/mini','catalog/filter','catalog/stage','catalog/lists' ), |
|
24 | - 'catalog-stock' => array( 'catalog/stock' ), |
|
25 | - 'catalog-suggest' => array( 'catalog/suggest' ), |
|
26 | - 'checkout-confirm' => array( 'checkout/confirm' ), |
|
27 | - 'checkout-index' => array( 'checkout/standard' ), |
|
28 | - 'checkout-update' => array( 'checkout/update'), |
|
19 | + 'account-index' => array('account/history', 'account/favorite', 'account/watch', 'basket/mini', 'catalog/session'), |
|
20 | + 'basket-index' => array('basket/standard', 'basket/related'), |
|
21 | + 'catalog-count' => array('catalog/count'), |
|
22 | + 'catalog-detail' => array('basket/mini', 'catalog/stage', 'catalog/detail', 'catalog/session'), |
|
23 | + 'catalog-list' => array('basket/mini', 'catalog/filter', 'catalog/stage', 'catalog/lists'), |
|
24 | + 'catalog-stock' => array('catalog/stock'), |
|
25 | + 'catalog-suggest' => array('catalog/suggest'), |
|
26 | + 'checkout-confirm' => array('checkout/confirm'), |
|
27 | + 'checkout-index' => array('checkout/standard'), |
|
28 | + 'checkout-update' => array('checkout/update'), |
|
29 | 29 | ), |
30 | 30 | |
31 | 31 | 'resource' => array( |
@@ -36,24 +36,24 @@ discard block |
||
36 | 36 | 'database' => env('DB_DATABASE', 'laravel'), |
37 | 37 | 'username' => env('DB_USERNAME', 'root'), |
38 | 38 | 'password' => env('DB_PASSWORD', ''), |
39 | - 'stmt' => array( "SET NAMES 'utf8'", "SET SESSION sql_mode='ANSI'" ), |
|
39 | + 'stmt' => array("SET NAMES 'utf8'", "SET SESSION sql_mode='ANSI'"), |
|
40 | 40 | 'opt-persistent' => 0, |
41 | 41 | 'limit' => 2, |
42 | 42 | ), |
43 | 43 | 'fs' => array( |
44 | 44 | 'adapter' => 'Standard', |
45 | 45 | 'basedir' => public_path(), |
46 | - 'tempdir' => storage_path( 'tmp' ), |
|
46 | + 'tempdir' => storage_path('tmp'), |
|
47 | 47 | ), |
48 | 48 | 'fs-admin' => array( |
49 | 49 | 'adapter' => 'Standard', |
50 | - 'basedir' => public_path( 'uploads' ), |
|
51 | - 'tempdir' => storage_path( 'tmp' ), |
|
50 | + 'basedir' => public_path('uploads'), |
|
51 | + 'tempdir' => storage_path('tmp'), |
|
52 | 52 | ), |
53 | 53 | 'fs-secure' => array( |
54 | 54 | 'adapter' => 'Standard', |
55 | - 'basedir' => storage_path( 'secure' ), |
|
56 | - 'tempdir' => storage_path( 'tmp' ), |
|
55 | + 'basedir' => storage_path('secure'), |
|
56 | + 'tempdir' => storage_path('tmp'), |
|
57 | 57 | ), |
58 | 58 | ), |
59 | 59 | |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | 'default' => array( |
228 | 228 | 'mimeicon' => array( |
229 | 229 | # Directory where icons for the mime types stored |
230 | - 'directory' => public_path( '/packages/aimeos/shop/mimeicons' ), |
|
230 | + 'directory' => public_path('/packages/aimeos/shop/mimeicons'), |
|
231 | 231 | # File extension of mime type icons |
232 | 232 | 'extension' => '.png' |
233 | 233 | ), |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | # in the "maxwidth" parameter |
271 | 271 | # maxheight: 280 |
272 | 272 | ), |
273 | - 'tempdir' => storage_path( 'aimeos' ), |
|
273 | + 'tempdir' => storage_path('aimeos'), |
|
274 | 274 | ), |
275 | 275 | ), |
276 | 276 | 'product' => array( |