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

config/shop.php (1 issue)

1
<?php
2
3
return [
4
5
	'apc_enabled' => false, // enable for maximum performance if APCu is available
6
	'apc_prefix' => 'laravel:', // prefix for caching config and translation in APCu
7
	'num_formatter' => 'Locale', // locale based number formatter (alternative: "Standard")
8
	'pcntl_max' => 4, // maximum number of parallel command line processes when starting jobs
9
	'version' => env( 'APP_VERSION', 1 ), // shop CSS/JS file version
10
11
	'routes' => [
12
		// Docs: https://aimeos.org/docs/latest/laravel/extend/#custom-routes
13
		// Multi-sites: https://aimeos.org/docs/latest/laravel/customize/#multiple-shops
14
		// 'admin' => ['prefix' => 'admin', 'middleware' => ['web']],
15
		// 'jqadm' => ['prefix' => 'admin/{site}/jqadm', 'middleware' => ['web', 'auth']],
16
		// 'jsonadm' => ['prefix' => 'admin/{site}/jsonadm', 'middleware' => ['web', 'auth']],
17
		// 'jsonapi' => ['prefix' => 'jsonapi', 'middleware' => ['web', 'api']],
18
		// 'account' => ['prefix' => 'profile', 'middleware' => ['web', 'auth']],
19
		// 'default' => ['prefix' => 'shop', 'middleware' => ['web']],
20
		// 'confirm' => ['prefix' => 'shop', 'middleware' => ['web']],
21
		// 'supplier' => ['prefix' => 's', 'middleware' => ['web']],
22
		// 'page' => ['prefix' => 'p', 'middleware' => ['web']],
23
		// 'home' => ['middleware' => ['web']],
24
		// 'update' => [],
25
	],
26
27
	'page' => [
28
		'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'],
29
		'basket-index' => ['locale/select', 'catalog/tree', 'catalog/search', 'basket/standard', 'basket/bulk', 'basket/related'],
30
		'catalog-count' => ['catalog/count'],
31
		'catalog-detail' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/stage', 'catalog/detail', 'catalog/session'],
32
		'catalog-home' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/home'],
33
		'catalog-list' => ['locale/select', 'basket/mini', 'catalog/filter', 'catalog/tree', 'catalog/search', 'catalog/price', 'catalog/supplier', 'catalog/attribute', 'catalog/session', 'catalog/stage', 'catalog/lists'],
34
		'catalog-session' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'catalog/session'],
35
		'catalog-stock' => ['catalog/stock'],
36
		'catalog-suggest' => ['catalog/suggest'],
37
		'catalog-tree' => ['locale/select', 'basket/mini', 'catalog/filter', 'catalog/tree', 'catalog/search', 'catalog/price', 'catalog/supplier', 'catalog/attribute', 'catalog/session', 'catalog/stage', 'catalog/lists'],
38
		'checkout-confirm' => ['catalog/tree', 'catalog/search', 'checkout/confirm'],
39
		'checkout-index' => ['locale/select', 'catalog/tree', 'catalog/search', 'checkout/standard'],
40
		'checkout-update' => ['checkout/update'],
41
		'supplier-detail' => ['locale/select', 'basket/mini', 'catalog/tree', 'catalog/search', 'supplier/detail', 'catalog/lists'],
42
		'cms' => ['cms/page', 'catalog/tree', 'basket/mini'],
43
	],
44
45
	'resource' => [
46
		'db' => [
47
			'adapter' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.driver', '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

47
			'adapter' => config( 'database.connections.' . /** @scrutinizer ignore-call */ config( 'database.default', 'mysql' ) . '.driver', '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...
48
			'host' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.host', '127.0.0.1' ),
49
			'port' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.port', '3306' ),
50
			'socket' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.unix_socket', '' ),
51
			'database' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.database', 'forge' ),
52
			'username' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.username', 'forge' ),
53
			'password' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.password', '' ),
54
			'stmt' => config( 'database.default', 'mysql' ) === 'mysql' ? ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8mb4'; SET SESSION sql_mode='ANSI'"] : [],
55
			'limit' => 3, // maximum number of concurrent database connections
56
			'defaultTableOptions' => [
57
				'charset' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.charset' ),
58
				'collate' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.collation' ),
59
			],
60
			'driverOptions' => config( 'database.connections.' . config( 'database.default', 'mysql' ) . '.options' ),
61
		],
62
		'fs' => [
63
			'adapter' => 'Standard',
64
			'tempdir' => storage_path( 'tmp' ),
65
			'basedir' => public_path(),
66
			'baseurl' => rtrim(env('ASSET_URL', PHP_SAPI == 'cli' ? env('APP_URL') : ''), '/'),
67
		],
68
		'fs-media' => [
69
			'adapter' => 'Standard',
70
			'tempdir' => storage_path( 'tmp' ),
71
			'basedir' => public_path( 'aimeos' ),
72
			'baseurl' => rtrim(env('ASSET_URL', PHP_SAPI == 'cli' ? env('APP_URL') : ''), '/') . '/aimeos',
73
		],
74
		'fs-mimeicon' => [
75
			'adapter' => 'Standard',
76
			'tempdir' => storage_path( 'tmp' ),
77
			'basedir' => public_path( 'vendor/shop/mimeicons' ),
78
			'baseurl' => rtrim(env('ASSET_URL', PHP_SAPI == 'cli' ? env('APP_URL') : ''), '/') . '/vendor/shop/mimeicons',
79
		],
80
		'fs-theme' => [
81
			'adapter' => 'Standard',
82
			'tempdir' => storage_path( 'tmp' ),
83
			'basedir' => public_path( 'vendor/shop/themes' ),
84
			'baseurl' => rtrim(env('ASSET_URL', PHP_SAPI == 'cli' ? env('APP_URL') : ''), '/') . '/vendor/shop/themes',
85
		],
86
		'fs-admin' => [
87
			'adapter' => 'Standard',
88
			'tempdir' => storage_path( 'tmp' ),
89
			'basedir' => storage_path( 'admin' ),
90
		],
91
		'fs-export' => [
92
			'adapter' => 'Standard',
93
			'tempdir' => storage_path( 'tmp' ),
94
			'basedir' => storage_path( 'export' ),
95
		],
96
		'fs-import' => [
97
			'adapter' => 'Standard',
98
			'tempdir' => storage_path( 'tmp' ),
99
			'basedir' => storage_path( 'import' ),
100
		],
101
		'fs-secure' => [
102
			'adapter' => 'Standard',
103
			'tempdir' => storage_path( 'tmp' ),
104
			'basedir' => storage_path( 'secure' ),
105
		],
106
		'mq' => [
107
			'adapter' => 'Standard',
108
			'db' => 'db',
109
		],
110
		'email' => [
111
			'from-email' => config( 'mail.from.address' ),
112
			'from-name' => config( 'mail.from.name' ),
113
		],
114
	],
115
116
	'admin' => [],
117
118
	'client' => [
119
		'html' => [
120
			'basket' => [
121
				'cache' => [
122
					// 'enable' => false, // Disable basket content caching for development
123
				],
124
			],
125
			'common' => [
126
				'cache' => [
127
					// 'force' => true // enforce caching for logged in users
128
				],
129
			],
130
			'catalog' => [
131
				'lists' => [
132
					'basket-add' => true, // shows add to basket in list views
133
					// 'infinite-scroll' => true, // load more products in list view
134
					// 'size' => 48, // number of products per page
135
				],
136
				'selection' => [
137
					'type' => [// how variant attributes are displayed
138
						'color' => 'radio',
139
						'length' => 'radio',
140
						'width' => 'radio',
141
					],
142
				],
143
			],
144
		],
145
	],
146
147
	'controller' => [
148
		'frontend' => [
149
			'catalog' => [
150
				'levels-always' => 3 // number of category levels for mega menu
151
			]
152
		]
153
	],
154
155
	'i18n' => [
156
	],
157
158
	'madmin' => [
159
		'cache' => [
160
			'manager' => [
161
				// 'name' => 'None', // Disable caching for development
162
			],
163
		],
164
		'log' => [
165
			'manager' => [
166
				// 'loglevel' => 7, // Enable debug logging into madmin_log table
167
			],
168
		],
169
	],
170
171
	'mshop' => [
172
		'locale' => [
173
			// 'site' => '<custom site code>', // used instead of "default"
174
		]
175
	],
176
177
178
	'command' => [
179
	],
180
181
	'frontend' => [
182
	],
183
184
	'backend' => [
185
	],
186
187
];
188