if (strtolower($type) != 'white') {
$data['variety'][] = [
'name' => 'Amarone',
- 'parent' => 3, // categoryid for 'red'.
+ // The categoryid for 'red'.
+ 'parent' => 3,
'details' => 'Italian Venoto region',
'attributes' => [
'rich',
];
$data['variety'][] = [
'name' => 'Barbaresco',
- 'parent' => 3, // categoryid for 'red'.
+ // The categoryid for 'red'.
+ 'parent' => 3,
'details' => 'Italian Piedmont region',
'attributes' => [
'smoky',
if (strtolower($type) != 'red') {
$data['variety'][] = [
'name' => 'Kir',
- 'parent' => 1, // categoryid for 'white'.
+ // The categoryid for 'white'.
+ 'parent' => 1,
'details' => 'French Burgundy region',
'attributes' => [],
];
$data['variety'][] = [
'name' => 'Pinot Grigio',
- 'parent' => 1, // categoryid for 'white'.
+ // The categoryid for 'white'.
+ 'parent' => 1,
'details' => 'From the northeast of Italy',
'attributes' => [
'fruity',