1 | <?php |
||||
2 | |||||
3 | switch( config( 'database.default', 'mysql' ) ) { |
||||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
The call to
config() has too many arguments starting with 'mysql' .
(
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 | case 'pgsql': $aimeosIndexManagerName = 'PgSQL'; break; |
||||
5 | case 'sqlsrv': $aimeosIndexManagerName = 'SQLSrv'; break; |
||||
6 | default: $aimeosIndexManagerName = 'MySQL'; |
||||
7 | } |
||||
8 | |||||
9 | |||||
10 | return [ |
||||
11 | |||||
12 | 'apc_enabled' => false, |
||||
13 | 'apc_prefix' => 'laravel:', |
||||
14 | 'pcntl_max' => 4, |
||||
15 | 'pcntl_priority' => 19, |
||||
16 | |||||
17 | 'page' => [ |
||||
18 | 'account-index' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'account/profile', 'account/review', 'account/subscription', 'account/basket', 'account/history', 'account/favorite', 'account/watch', 'catalog/session'], |
||||
19 | 'basket-index' => ['locale/select', 'catalog/tree', 'catalog/search', 'basket/standard', 'basket/bulk', 'basket/related'], |
||||
20 | 'catalog-count' => ['catalog/count'], |
||||
21 | 'catalog-detail' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/stage', 'catalog/detail', 'catalog/session'], |
||||
22 | 'catalog-home' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/home'], |
||||
23 | 'catalog-list' => ['locale/select', 'basket/mini', 'catalog/filter', 'catalog/tree', 'catalog/search', 'catalog/price', 'catalog/supplier', 'catalog/attribute', 'catalog/session', 'catalog/stage', 'catalog/lists'], |
||||
24 | 'catalog-session' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/session'], |
||||
25 | 'catalog-stock' => ['catalog/stock'], |
||||
26 | 'catalog-suggest' => ['catalog/suggest'], |
||||
27 | 'catalog-tree' => ['locale/select', 'basket/mini', 'catalog/filter', 'catalog/tree', 'catalog/search', 'catalog/price', 'catalog/supplier', 'catalog/attribute', 'catalog/session', 'catalog/stage', 'catalog/lists'], |
||||
28 | 'checkout-confirm' => ['catalog/tree', 'catalog/search', 'checkout/confirm'], |
||||
29 | 'checkout-index' => ['locale/select', 'catalog/tree', 'catalog/search', 'checkout/standard'], |
||||
30 | 'checkout-update' => ['checkout/update'], |
||||
31 | 'supplier-detail' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'supplier/detail', 'catalog/lists'], |
||||
32 | ], |
||||
33 | |||||
34 | 'admin' => [ |
||||
35 | 'graphql' => [ |
||||
36 | 'url' => [ |
||||
37 | 'target' => 'aimeos_shop_graphql_post', |
||||
38 | 'config' => [ |
||||
39 | 'absoluteUri' => true, |
||||
40 | ], |
||||
41 | ], |
||||
42 | ], |
||||
43 | 'jqadm' => [ |
||||
44 | 'url' => [ |
||||
45 | 'batch' => [ |
||||
46 | 'target' => 'aimeos_shop_jqadm_batch' |
||||
47 | ], |
||||
48 | 'copy' => [ |
||||
49 | 'target' => 'aimeos_shop_jqadm_copy' |
||||
50 | ], |
||||
51 | 'create' => [ |
||||
52 | 'target' => 'aimeos_shop_jqadm_create' |
||||
53 | ], |
||||
54 | 'delete' => [ |
||||
55 | 'target' => 'aimeos_shop_jqadm_delete' |
||||
56 | ], |
||||
57 | 'export' => [ |
||||
58 | 'target' => 'aimeos_shop_jqadm_export' |
||||
59 | ], |
||||
60 | 'get' => [ |
||||
61 | 'target' => 'aimeos_shop_jqadm_get' |
||||
62 | ], |
||||
63 | 'import' => [ |
||||
64 | 'target' => 'aimeos_shop_jqadm_import' |
||||
65 | ], |
||||
66 | 'save' => [ |
||||
67 | 'target' => 'aimeos_shop_jqadm_save' |
||||
68 | ], |
||||
69 | 'search' => [ |
||||
70 | 'target' => 'aimeos_shop_jqadm_search' |
||||
71 | ], |
||||
72 | ], |
||||
73 | ], |
||||
74 | 'jsonadm' => [ |
||||
75 | 'url' => [ |
||||
76 | 'target' => 'aimeos_shop_jsonadm_get', |
||||
77 | 'config' => [ |
||||
78 | 'absoluteUri' => true, |
||||
79 | ], |
||||
80 | 'options' => [ |
||||
81 | 'target' => 'aimeos_shop_jsonadm_options', |
||||
82 | 'config' => [ |
||||
83 | 'absoluteUri' => true, |
||||
84 | ], |
||||
85 | ], |
||||
86 | ], |
||||
87 | ], |
||||
88 | ], |
||||
89 | 'client' => [ |
||||
90 | 'html' => [ |
||||
91 | 'account' => [ |
||||
92 | 'index' => [ |
||||
93 | 'url' => [ |
||||
94 | 'target' => 'aimeos_shop_account', |
||||
95 | ], |
||||
96 | ], |
||||
97 | 'basket' => [ |
||||
98 | 'url' => [ |
||||
99 | 'target' => 'aimeos_shop_account', |
||||
100 | ], |
||||
101 | ], |
||||
102 | 'review' => [ |
||||
103 | 'url' => [ |
||||
104 | 'target' => 'aimeos_shop_account', |
||||
105 | ], |
||||
106 | ], |
||||
107 | 'profile' => [ |
||||
108 | 'url' => [ |
||||
109 | 'target' => 'aimeos_shop_account', |
||||
110 | ], |
||||
111 | ], |
||||
112 | 'subscription' => [ |
||||
113 | 'url' => [ |
||||
114 | 'target' => 'aimeos_shop_account', |
||||
115 | ], |
||||
116 | ], |
||||
117 | 'history' => [ |
||||
118 | 'url' => [ |
||||
119 | 'target' => 'aimeos_shop_account', |
||||
120 | ], |
||||
121 | ], |
||||
122 | 'favorite' => [ |
||||
123 | 'url' => [ |
||||
124 | 'target' => 'aimeos_shop_account_favorite', |
||||
125 | ], |
||||
126 | ], |
||||
127 | 'watch' => [ |
||||
128 | 'url' => [ |
||||
129 | 'target' => 'aimeos_shop_account_watch', |
||||
130 | ], |
||||
131 | ], |
||||
132 | 'download' => [ |
||||
133 | 'url' => [ |
||||
134 | 'target' => 'aimeos_shop_account_download', |
||||
135 | ], |
||||
136 | 'error' => [ |
||||
137 | 'url' => [ |
||||
138 | 'target' => 'aimeos_shop_account', |
||||
139 | ], |
||||
140 | ], |
||||
141 | ], |
||||
142 | ], |
||||
143 | 'cms' => [ |
||||
144 | 'page' => [ |
||||
145 | 'url' => [ |
||||
146 | 'target' => 'aimeos_page', |
||||
147 | ], |
||||
148 | ], |
||||
149 | ], |
||||
150 | 'catalog' => [ |
||||
151 | 'count' => [ |
||||
152 | 'url' => [ |
||||
153 | 'target' => 'aimeos_shop_count', |
||||
154 | ], |
||||
155 | ], |
||||
156 | 'detail' => [ |
||||
157 | 'url' => [ |
||||
158 | 'target' => 'aimeos_shop_detail', |
||||
159 | 'filter' => ['path', 'd_prodid'], |
||||
160 | ], |
||||
161 | ], |
||||
162 | 'home' => [ |
||||
163 | 'url' => [ |
||||
164 | 'target' => 'aimeos_home', |
||||
165 | ], |
||||
166 | ], |
||||
167 | 'lists' => [ |
||||
168 | 'url' => [ |
||||
169 | 'target' => 'aimeos_shop_list', |
||||
170 | ], |
||||
171 | ], |
||||
172 | 'session' => [ |
||||
173 | 'pinned' => [ |
||||
174 | 'url' => [ |
||||
175 | 'target' => 'aimeos_shop_session_pinned', |
||||
176 | ], |
||||
177 | ], |
||||
178 | ], |
||||
179 | 'stock' => [ |
||||
180 | 'url' => [ |
||||
181 | 'target' => 'aimeos_shop_stock', |
||||
182 | ], |
||||
183 | ], |
||||
184 | 'suggest' => [ |
||||
185 | 'url' => [ |
||||
186 | 'target' => 'aimeos_shop_suggest', |
||||
187 | ], |
||||
188 | ], |
||||
189 | 'tree' => [ |
||||
190 | 'url' => [ |
||||
191 | 'target' => 'aimeos_shop_tree', |
||||
192 | 'filter' => ['path'], |
||||
193 | ], |
||||
194 | ], |
||||
195 | ], |
||||
196 | 'common' => [ |
||||
197 | 'template' => [ |
||||
198 | 'baseurl' => public_path( 'vendor/shop/themes/default' ), |
||||
199 | ], |
||||
200 | ], |
||||
201 | 'basket' => [ |
||||
202 | 'standard' => [ |
||||
203 | 'url' => [ |
||||
204 | 'target' => 'aimeos_shop_basket', |
||||
205 | ], |
||||
206 | ], |
||||
207 | ], |
||||
208 | 'checkout' => [ |
||||
209 | 'confirm' => [ |
||||
210 | 'url' => [ |
||||
211 | 'target' => 'aimeos_shop_confirm', |
||||
212 | ], |
||||
213 | ], |
||||
214 | 'standard' => [ |
||||
215 | 'url' => [ |
||||
216 | 'target' => 'aimeos_shop_checkout', |
||||
217 | ], |
||||
218 | 'summary' => [ |
||||
219 | 'option' => [ |
||||
220 | 'terms' => [ |
||||
221 | 'url' => [ |
||||
222 | 'target' => 'aimeos_page', |
||||
223 | ], |
||||
224 | 'privacy' => [ |
||||
225 | 'url' => [ |
||||
226 | 'target' => 'aimeos_page', |
||||
227 | ], |
||||
228 | ], |
||||
229 | 'cancel' => [ |
||||
230 | 'url' => [ |
||||
231 | 'target' => 'aimeos_page', |
||||
232 | ], |
||||
233 | ], |
||||
234 | ], |
||||
235 | ], |
||||
236 | ], |
||||
237 | ], |
||||
238 | 'update' => [ |
||||
239 | 'url' => [ |
||||
240 | 'target' => 'aimeos_shop_update', |
||||
241 | ], |
||||
242 | ], |
||||
243 | ], |
||||
244 | 'locale' => [ |
||||
245 | 'select' => [ |
||||
246 | 'currency' => [ |
||||
247 | 'param-name' => 'currency', |
||||
248 | ], |
||||
249 | 'language' => [ |
||||
250 | 'param-name' => 'locale', |
||||
251 | ], |
||||
252 | ], |
||||
253 | ], |
||||
254 | 'supplier' => [ |
||||
255 | 'detail' => [ |
||||
256 | 'url' => [ |
||||
257 | 'target' => 'aimeos_shop_supplier', |
||||
258 | ], |
||||
259 | ], |
||||
260 | ] |
||||
261 | ], |
||||
262 | 'jsonapi' => [ |
||||
263 | 'url' => [ |
||||
264 | 'target' => 'aimeos_shop_jsonapi_options', |
||||
265 | 'config' => [ |
||||
266 | 'absoluteUri' => true, |
||||
267 | ], |
||||
268 | ], |
||||
269 | ], |
||||
270 | ], |
||||
271 | |||||
272 | 'controller' => [ |
||||
273 | 'jobs' => [ |
||||
274 | 'to-email' => config( 'mail.from.address' ), |
||||
275 | ] |
||||
276 | ], |
||||
277 | |||||
278 | 'mshop' => [ |
||||
279 | 'customer' => [ |
||||
280 | 'manager' => [ |
||||
281 | 'name' => 'Laravel', |
||||
282 | 'password' => [ |
||||
283 | 'name' => 'Bcrypt', |
||||
284 | ], |
||||
285 | ], |
||||
286 | ], |
||||
287 | 'index' => [ |
||||
288 | 'manager' => [ |
||||
289 | 'name' => $aimeosIndexManagerName, |
||||
290 | 'attribute' => [ |
||||
291 | 'name' => $aimeosIndexManagerName, |
||||
292 | ], |
||||
293 | 'catalog' => [ |
||||
294 | 'name' => $aimeosIndexManagerName, |
||||
295 | ], |
||||
296 | 'price' => [ |
||||
297 | 'name' => $aimeosIndexManagerName, |
||||
298 | ], |
||||
299 | 'supplier' => [ |
||||
300 | 'name' => $aimeosIndexManagerName, |
||||
301 | ], |
||||
302 | 'text' => [ |
||||
303 | 'name' => $aimeosIndexManagerName, |
||||
304 | ], |
||||
305 | ], |
||||
306 | ], |
||||
307 | ], |
||||
308 | ]; |
||||
309 |