Both the $myVar assignment in line 1 and the $higher assignment in line 2
are dead. The first because $myVar is never used and the second because
$higher is always overwritten for every possible time line.
Loading history...
15
1
'sku' => $data['sku'],
16
1
'price' => $data['price'],
17
1
'special_price' => $data['special_price'],
18
1
'specialFromDate' => $data['special_from_date'],
19
1
'specialToDate' => $data['special_to_date']
20
1
]);
21
1
}
22
23
1
return $priceCollection;
24
}
25
26
/**
27
* {@inheritdoc}
28
*/
29
public function map($internalData)
30
{
31
$externalData = ['items' => []];
32
33
foreach ($internalData->getItemCollection() as $item) {
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.