Passed
Push — master ( fb8735...9c9a31 )
by Aimeos
05:27
created

config/default.php (1 issue)

1
<?php
2
3
switch( config( 'database.default', 'mysql' ) ) {
0 ignored issues
show
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 ignore-call  annotation

3
switch( /** @scrutinizer ignore-call */ config( 'database.default', 'mysql' ) ) {

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
	'extdir' => base_path( 'ext' ),
15
	'pcntl_max' => 4,
16
	'pcntl_priority' => 19,
17
	'uploaddir' => '/',
18
19
	'page' => [
20
		'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'],
21
		'basket-index' => ['locale/select', 'catalog/tree', 'catalog/search', 'basket/standard', 'basket/bulk', 'basket/related'],
22
		'catalog-count' => ['catalog/count'],
23
		'catalog-detail' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/stage', 'catalog/detail', 'catalog/session'],
24
		'catalog-home' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/home'],
25
		'catalog-list' => ['locale/select', 'basket/mini', 'catalog/filter', 'catalog/tree', 'catalog/search', 'catalog/price', 'catalog/supplier', 'catalog/attribute', 'catalog/session', 'catalog/stage', 'catalog/lists'],
26
		'catalog-session' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/session'],
27
		'catalog-stock' => ['catalog/stock'],
28
		'catalog-suggest' => ['catalog/suggest'],
29
		'catalog-tree' => ['locale/select', 'basket/mini', 'catalog/filter', 'catalog/tree', 'catalog/search', 'catalog/price', 'catalog/supplier', 'catalog/attribute', 'catalog/session', 'catalog/stage', 'catalog/lists'],
30
		'checkout-confirm' => ['catalog/tree', 'catalog/search', 'checkout/confirm'],
31
		'checkout-index' => ['locale/select', 'catalog/tree', 'catalog/search', 'checkout/standard'],
32
		'checkout-update' => ['checkout/update'],
33
		'supplier-detail' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'supplier/detail', 'catalog/lists'],
34
	],
35
36
	'admin' => [
37
		'graphql' => [
38
			'url' => [
39
				'target' => 'aimeos_shop_graphql_post',
40
				'config' => [
41
					'absoluteUri' => true,
42
				],
43
			],
44
		],
45
		'jqadm' => [
46
			'url' => [
47
				'batch' => [
48
					'target' => 'aimeos_shop_jqadm_batch'
49
				],
50
				'copy' => [
51
					'target' => 'aimeos_shop_jqadm_copy'
52
				],
53
				'create' => [
54
					'target' => 'aimeos_shop_jqadm_create'
55
				],
56
				'delete' => [
57
					'target' => 'aimeos_shop_jqadm_delete'
58
				],
59
				'export' => [
60
					'target' => 'aimeos_shop_jqadm_export'
61
				],
62
				'get' => [
63
					'target' => 'aimeos_shop_jqadm_get'
64
				],
65
				'import' => [
66
					'target' => 'aimeos_shop_jqadm_import'
67
				],
68
				'save' => [
69
					'target' => 'aimeos_shop_jqadm_save'
70
				],
71
				'search' => [
72
					'target' => 'aimeos_shop_jqadm_search'
73
				],
74
			],
75
		],
76
		'jsonadm' => [
77
			'url' => [
78
				'target' => 'aimeos_shop_jsonadm_get',
79
				'config' => [
80
					'absoluteUri' => true,
81
				],
82
				'options' => [
83
					'target' => 'aimeos_shop_jsonadm_options',
84
					'config' => [
85
						'absoluteUri' => true,
86
					],
87
				],
88
			],
89
		],
90
	],
91
	'client' => [
92
		'html' => [
93
			'account' => [
94
				'index' => [
95
					'url' => [
96
						'target' => 'aimeos_shop_account',
97
					],
98
				],
99
				'basket' => [
100
					'url' => [
101
						'target' => 'aimeos_shop_account',
102
					],
103
				],
104
				'review' => [
105
					'url' => [
106
						'target' => 'aimeos_shop_account',
107
					],
108
				],
109
				'profile' => [
110
					'url' => [
111
						'target' => 'aimeos_shop_account',
112
					],
113
				],
114
				'subscription' => [
115
					'url' => [
116
						'target' => 'aimeos_shop_account',
117
					],
118
				],
119
				'history' => [
120
					'url' => [
121
						'target' => 'aimeos_shop_account',
122
					],
123
				],
124
				'favorite' => [
125
					'url' => [
126
						'target' => 'aimeos_shop_account_favorite',
127
					],
128
				],
129
				'watch' => [
130
					'url' => [
131
						'target' => 'aimeos_shop_account_watch',
132
					],
133
				],
134
				'download' => [
135
					'url' => [
136
						'target' => 'aimeos_shop_account_download',
137
					],
138
					'error' => [
139
						'url' => [
140
							'target' => 'aimeos_shop_account',
141
						],
142
					],
143
				],
144
			],
145
			'cms' => [
146
				'page' => [
147
					'url' => [
148
						'target' => 'aimeos_page',
149
					],
150
				],
151
			],
152
			'catalog' => [
153
				'count' => [
154
					'url' => [
155
						'target' => 'aimeos_shop_count',
156
					],
157
				],
158
				'detail' => [
159
					'url' => [
160
						'target' => 'aimeos_shop_detail',
161
					],
162
				],
163
				'home' => [
164
					'url' => [
165
						'target' => 'aimeos_home',
166
					],
167
				],
168
				'lists' => [
169
					'url' => [
170
						'target' => 'aimeos_shop_list',
171
					],
172
				],
173
				'session' => [
174
					'pinned' => [
175
						'url' => [
176
							'target' => 'aimeos_shop_session_pinned',
177
						],
178
					],
179
				],
180
				'stock' => [
181
					'url' => [
182
						'target' => 'aimeos_shop_stock',
183
					],
184
				],
185
				'suggest' => [
186
					'url' => [
187
						'target' => 'aimeos_shop_suggest',
188
					],
189
				],
190
				'tree' => [
191
					'url' => [
192
						'target' => 'aimeos_shop_tree',
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