1 | <?php |
||||
2 | |||||
3 | if( ( $conf = config( 'shop.routes.admin', ['prefix' => 'admin', 'middleware' => ['web']] ) ) !== false ) { |
||||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
The call to
config() has too many arguments starting with array('prefix' => 'admin...eware' => array('web')) .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue. If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.
Loading history...
|
|||||
4 | |||||
5 | Route::group( $conf, function() { |
||||
6 | |||||
7 | Route::match( array( 'GET' ), '', array( |
||||
8 | 'as' => 'aimeos_shop_admin', |
||||
9 | 'uses' => 'Aimeos\Shop\Controller\AdminController@indexAction' |
||||
10 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
11 | |||||
12 | }); |
||||
13 | } |
||||
14 | |||||
15 | |||||
16 | if( ( $conf = config( 'shop.routes.jqadm', ['prefix' => 'admin/{site}/jqadm', 'middleware' => ['web', 'auth']] ) ) !== false ) { |
||||
17 | |||||
18 | Route::group( $conf, function() { |
||||
19 | |||||
20 | Route::match( array( 'GET' ), 'file/{type}', array( |
||||
21 | 'as' => 'aimeos_shop_jqadm_file', |
||||
22 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@fileAction' |
||||
23 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
24 | |||||
25 | Route::match( array( 'POST' ), 'batch/{resource}', array( |
||||
26 | 'as' => 'aimeos_shop_jqadm_batch', |
||||
27 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@batchAction' |
||||
28 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
29 | |||||
30 | Route::match( array( 'GET' ), 'copy/{resource}/{id}', array( |
||||
31 | 'as' => 'aimeos_shop_jqadm_copy', |
||||
32 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@copyAction' |
||||
33 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
34 | |||||
35 | Route::match( array( 'GET' ), 'create/{resource}', array( |
||||
36 | 'as' => 'aimeos_shop_jqadm_create', |
||||
37 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@createAction' |
||||
38 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
39 | |||||
40 | Route::match( array( 'POST' ), 'delete/{resource}/{id?}', array( |
||||
41 | 'as' => 'aimeos_shop_jqadm_delete', |
||||
42 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@deleteAction' |
||||
43 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
44 | |||||
45 | Route::match( array( 'GET', 'POST' ), 'export/{resource}', array( |
||||
46 | 'as' => 'aimeos_shop_jqadm_export', |
||||
47 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@exportAction' |
||||
48 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
49 | |||||
50 | Route::match( array( 'GET' ), 'get/{resource}/{id}', array( |
||||
51 | 'as' => 'aimeos_shop_jqadm_get', |
||||
52 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@getAction' |
||||
53 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
54 | |||||
55 | Route::match( array( 'POST' ), 'save/{resource}', array( |
||||
56 | 'as' => 'aimeos_shop_jqadm_save', |
||||
57 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@saveAction' |
||||
58 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
59 | |||||
60 | Route::match( array( 'GET', 'POST' ), 'search/{resource}', array( |
||||
61 | 'as' => 'aimeos_shop_jqadm_search', |
||||
62 | 'uses' => 'Aimeos\Shop\Controller\JqadmController@searchAction' |
||||
63 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
64 | |||||
65 | }); |
||||
66 | } |
||||
67 | |||||
68 | |||||
69 | if( ( $conf = config( 'shop.routes.graphql', ['prefix' => 'admin/{site}/graphql', 'middleware' => ['web', 'auth']] ) ) !== false ) { |
||||
70 | |||||
71 | Route::group( $conf, function() { |
||||
72 | |||||
73 | Route::match( array( 'POST' ), '', array( |
||||
74 | 'as' => 'aimeos_shop_graphql_post', |
||||
75 | 'uses' => 'Aimeos\Shop\Controller\GraphqlController@indexAction' |
||||
76 | ) )->where( ['site' => '[A-Za-z0-9\.\-]+'] ); |
||||
77 | |||||
78 | }); |
||||
79 | } |
||||
80 | |||||
81 | |||||
82 | if( ( $conf = config( 'shop.routes.jsonadm', ['prefix' => 'admin/{site}/jsonadm', 'middleware' => ['web', 'auth']] ) ) !== false ) { |
||||
83 | |||||
84 | Route::group( $conf, function() { |
||||
85 | |||||
86 | Route::match( array( 'DELETE' ), '{resource}/{id?}', array( |
||||
87 | 'as' => 'aimeos_shop_jsonadm_delete', |
||||
88 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@deleteAction' |
||||
89 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
90 | |||||
91 | Route::match( array( 'GET' ), '{resource}/{id?}', array( |
||||
92 | 'as' => 'aimeos_shop_jsonadm_get', |
||||
93 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@getAction' |
||||
94 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
95 | |||||
96 | Route::match( array( 'PATCH' ), '{resource}/{id?}', array( |
||||
97 | 'as' => 'aimeos_shop_jsonadm_patch', |
||||
98 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@patchAction' |
||||
99 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
100 | |||||
101 | Route::match( array( 'POST' ), '{resource}/{id?}', array( |
||||
102 | 'as' => 'aimeos_shop_jsonadm_post', |
||||
103 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@postAction' |
||||
104 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
105 | |||||
106 | Route::match( array( 'PUT' ), '{resource}/{id?}', array( |
||||
107 | 'as' => 'aimeos_shop_jsonadm_put', |
||||
108 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@putAction' |
||||
109 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
110 | |||||
111 | Route::match( array( 'OPTIONS' ), '{resource?}', array( |
||||
112 | 'as' => 'aimeos_shop_jsonadm_options', |
||||
113 | 'uses' => 'Aimeos\Shop\Controller\JsonadmController@optionsAction' |
||||
114 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'resource' => '[a-z\/]+'] ); |
||||
115 | |||||
116 | }); |
||||
117 | } |
||||
118 | |||||
119 | |||||
120 | if( ( $conf = config( 'shop.routes.jsonapi', ['prefix' => 'jsonapi', 'middleware' => ['web', 'api']] ) ) !== false ) { |
||||
121 | |||||
122 | Route::group( $conf, function() { |
||||
123 | |||||
124 | Route::match( array( 'DELETE' ), '{resource}', array( |
||||
125 | 'as' => 'aimeos_shop_jsonapi_delete', |
||||
126 | 'uses' => 'Aimeos\Shop\Controller\JsonapiController@deleteAction' |
||||
127 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
128 | |||||
129 | Route::match( array( 'GET' ), '{resource}', array( |
||||
130 | 'as' => 'aimeos_shop_jsonapi_get', |
||||
131 | 'uses' => 'Aimeos\Shop\Controller\JsonapiController@getAction' |
||||
132 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
133 | |||||
134 | Route::match( array( 'PATCH' ), '{resource}', array( |
||||
135 | 'as' => 'aimeos_shop_jsonapi_patch', |
||||
136 | 'uses' => 'Aimeos\Shop\Controller\JsonapiController@patchAction' |
||||
137 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
138 | |||||
139 | Route::match( array( 'POST' ), '{resource}', array( |
||||
140 | 'as' => 'aimeos_shop_jsonapi_post', |
||||
141 | 'uses' => 'Aimeos\Shop\Controller\JsonapiController@postAction' |
||||
142 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
143 | |||||
144 | Route::match( array( 'PUT' ), '{resource}', array( |
||||
145 | 'as' => 'aimeos_shop_jsonapi_put', |
||||
146 | 'uses' => 'Aimeos\Shop\Controller\JsonapiController@putAction' |
||||
147 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
148 | |||||
149 | Route::match( array( 'GET', 'OPTIONS' ), '{resource?}', array( |
||||
150 | 'as' => 'aimeos_shop_jsonapi_options', |
||||
151 | 'uses' => 'Aimeos\Shop\Controller\JsonapiController@optionsAction' |
||||
152 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
153 | |||||
154 | }); |
||||
155 | } |
||||
156 | |||||
157 | |||||
158 | if( ( $conf = config( 'shop.routes.account', ['prefix' => 'profile', 'middleware' => ['web', 'auth']] ) ) !== false ) { |
||||
159 | |||||
160 | Route::group( $conf, function() { |
||||
161 | |||||
162 | Route::match( array( 'GET', 'POST' ), 'favorite/{fav_action?}/{fav_id?}/{d_name?}/{d_pos?}', array( |
||||
163 | 'as' => 'aimeos_shop_account_favorite', |
||||
164 | 'uses' => 'Aimeos\Shop\Controller\AccountController@indexAction' |
||||
165 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
166 | |||||
167 | Route::match( array( 'GET', 'POST' ), 'watch/{wat_action?}/{wat_id?}/{d_name?}/{d_pos?}', array( |
||||
168 | 'as' => 'aimeos_shop_account_watch', |
||||
169 | 'uses' => 'Aimeos\Shop\Controller\AccountController@indexAction' |
||||
170 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
171 | |||||
172 | Route::match( array( 'GET', 'POST' ), 'download/{dl_id}', array( |
||||
173 | 'as' => 'aimeos_shop_account_download', |
||||
174 | 'uses' => 'Aimeos\Shop\Controller\AccountController@downloadAction' |
||||
175 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
176 | |||||
177 | Route::match( array( 'GET', 'POST' ), '', array( |
||||
178 | 'as' => 'aimeos_shop_account', |
||||
179 | 'uses' => 'Aimeos\Shop\Controller\AccountController@indexAction' |
||||
180 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
181 | |||||
182 | }); |
||||
183 | } |
||||
184 | |||||
185 | |||||
186 | if( ( $conf = config( 'shop.routes.supplier', ['prefix' => 'supplier', 'middleware' => ['web']] ) ) !== false ) { |
||||
187 | |||||
188 | Route::group( $conf, function() { |
||||
189 | |||||
190 | Route::match( array( 'GET', 'POST' ), '{s_name}/{f_supid}', array( |
||||
191 | 'as' => 'aimeos_shop_supplier', |
||||
192 | 'uses' => 'Aimeos\Shop\Controller\SupplierController@detailAction' |
||||
193 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
194 | |||||
195 | } ); |
||||
196 | } |
||||
197 | |||||
198 | |||||
199 | if( ( $conf = config( 'shop.routes.update', [] ) ) !== false ) { |
||||
200 | |||||
201 | Route::group( $conf, function() { |
||||
202 | |||||
203 | Route::match( array( 'GET', 'POST' ), 'update', array( |
||||
204 | 'as' => 'aimeos_shop_update', |
||||
205 | 'uses' => 'Aimeos\Shop\Controller\CheckoutController@updateAction' |
||||
206 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
207 | |||||
208 | }); |
||||
209 | } |
||||
210 | |||||
211 | |||||
212 | if( ( $conf = config( 'shop.routes.confirm', ['prefix' => 'shop', 'middleware' => ['web']] ) ) !== false ) { |
||||
213 | |||||
214 | Route::group( $conf, function() { |
||||
215 | |||||
216 | Route::match( array( 'GET', 'POST' ), 'confirm/{code?}', array( |
||||
217 | 'as' => 'aimeos_shop_confirm', |
||||
218 | 'uses' => 'Aimeos\Shop\Controller\CheckoutController@confirmAction' |
||||
219 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
220 | |||||
221 | }); |
||||
222 | } |
||||
223 | |||||
224 | |||||
225 | if( ( $conf = config( 'shop.routes.default', ['prefix' => 'shop', 'middleware' => ['web']] ) ) !== false ) { |
||||
226 | |||||
227 | Route::group( $conf, function() { |
||||
228 | |||||
229 | Route::match( array( 'GET', 'POST' ), 'count', array( |
||||
230 | 'as' => 'aimeos_shop_count', |
||||
231 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@countAction' |
||||
232 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
233 | |||||
234 | Route::match( array( 'GET', 'POST' ), 'suggest', array( |
||||
235 | 'as' => 'aimeos_shop_suggest', |
||||
236 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@suggestAction' |
||||
237 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
238 | |||||
239 | Route::match( array( 'GET', 'POST' ), 'stock', array( |
||||
240 | 'as' => 'aimeos_shop_stock', |
||||
241 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@stockAction' |
||||
242 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
243 | |||||
244 | Route::match( array( 'GET', 'POST' ), 'basket', array( |
||||
245 | 'as' => 'aimeos_shop_basket', |
||||
246 | 'uses' => 'Aimeos\Shop\Controller\BasketController@indexAction' |
||||
247 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
248 | |||||
249 | Route::match( array( 'GET', 'POST' ), 'checkout/{c_step?}', array( |
||||
250 | 'as' => 'aimeos_shop_checkout', |
||||
251 | 'uses' => 'Aimeos\Shop\Controller\CheckoutController@indexAction' |
||||
252 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
253 | |||||
254 | Route::match( array( 'GET', 'POST' ), 'pin', array( |
||||
255 | 'as' => 'aimeos_shop_session_pinned', |
||||
256 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@sessionAction' |
||||
257 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
258 | |||||
259 | Route::match( array( 'GET', 'POST' ), '{f_name}~{f_catid}/{l_page?}', array( |
||||
260 | 'as' => 'aimeos_shop_tree', |
||||
261 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@treeAction' |
||||
262 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'f_name' => '[^~]*', 'l_page' => '[0-9]+'] ); |
||||
263 | |||||
264 | Route::match( array( 'GET', 'POST' ), '{d_name}/{d_pos?}/{d_prodid?}', array( |
||||
265 | 'as' => 'aimeos_shop_detail', |
||||
266 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@detailAction' |
||||
267 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+', 'd_pos' => '[0-9]*'] ); |
||||
268 | |||||
269 | Route::match( array( 'GET', 'POST' ), '', array( |
||||
270 | 'as' => 'aimeos_shop_list', |
||||
271 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@listAction' |
||||
272 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
273 | |||||
274 | }); |
||||
275 | } |
||||
276 | |||||
277 | |||||
278 | if( ( $conf = config( 'shop.routes.page', ['prefix' => 'p', 'middleware' => ['web']] ) ) !== false ) { |
||||
279 | |||||
280 | Route::group( $conf, function() { |
||||
281 | |||||
282 | Route::match(['GET', 'POST'], '{path?}', [ |
||||
283 | 'as' => 'aimeos_page', |
||||
284 | 'uses' => '\Aimeos\Shop\Controller\PageController@indexAction' |
||||
285 | ] )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
286 | }); |
||||
287 | } |
||||
288 | |||||
289 | |||||
290 | if( ( $conf = config( 'shop.routes.home', ['middleware' => ['web']] ) ) !== false ) { |
||||
291 | |||||
292 | Route::group( $conf, function() { |
||||
293 | |||||
294 | Route::match( array( 'GET', 'POST' ), '/', array( |
||||
295 | 'as' => 'aimeos_home', |
||||
296 | 'uses' => 'Aimeos\Shop\Controller\CatalogController@homeAction' |
||||
297 | ) )->where( ['locale' => '[a-z]{2}(\_[A-Z]{2})?', 'site' => '[A-Za-z0-9\.\-]+'] ); |
||||
298 | |||||
299 | }); |
||||
300 | } |
||||
301 |