Skip to content

Commit ff97fe6

Browse files
committed
fix some static issues
1 parent 9e24869 commit ff97fe6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/AdminNotification/Observer/PredispatchAdminActionControllerObserver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
/**
1111
* AdminNotification observer
12+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1213
*/
1314
class PredispatchAdminActionControllerObserver implements ObserverInterface
1415
{

app/code/Magento/AdvancedPricingImportExport/Model/Export/AdvancedPricing.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
/**
1515
* Export Advanced Pricing
1616
*
17+
* @author Magento Core Team <core@magentocommerce.com>
1718
* @SuppressWarnings(PHPMD.TooManyFields)
1819
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
1920
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -514,7 +515,6 @@ private function fetchTierPrices(array $productIds): array
514515
*/
515516
protected function getTierPrices(array $listSku, $table)
516517
{
517-
$selectFields = [];
518518
if (isset($this->_parameters[\Magento\ImportExport\Model\Export::FILTER_ELEMENT_GROUP])) {
519519
$exportFilter = $this->_parameters[\Magento\ImportExport\Model\Export::FILTER_ELEMENT_GROUP];
520520
}
@@ -571,11 +571,12 @@ protected function getTierPrices(array $listSku, $table)
571571
if (isset($updatedAtTo) && !empty($updatedAtTo)) {
572572
$select->where('cpe.updated_at <= ?', $updatedAtTo);
573573
}
574-
return $this->_connection->fetchAll($select);
574+
$exportData = $this->_connection->fetchAll($select);
575575
} catch (\Exception $e) {
576576
return false;
577577
}
578578
}
579+
return $exportData;
579580
}
580581

581582
/**

0 commit comments

Comments
 (0)