Skip to content

Commit 5d6159b

Browse files
committed
Fix static tests
1 parent f90a42e commit 5d6159b

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class AdvancedPricing extends \Magento\CatalogImportExport\Model\Export\Product
2222
{
23-
const ENTITY_ADVANCED_PRICING = 'advanced_pricing';
23+
public const ENTITY_ADVANCED_PRICING = 'advanced_pricing';
2424

2525
/**
2626
* @var \Magento\CatalogImportExport\Model\Import\Product\StoreResolver
@@ -567,10 +567,10 @@ protected function getTierPrices(array $listSku, $table)
567567
if (isset($price[0]) && !empty($price[0]) || isset($price[1]) && !empty($price[1])) {
568568
$select->orWhere('ap.percentage_value IS NOT NULL');
569569
}
570-
if (isset($updatedAtFrom) && !empty($updatedAtFrom)) {
570+
if (isset($updatedAtFrom)) {
571571
$select->where('cpe.updated_at >= ?', $updatedAtFrom);
572572
}
573-
if (isset($updatedAtTo) && !empty($updatedAtTo)) {
573+
if (isset($updatedAtTo)) {
574574
$select->where('cpe.updated_at <= ?', $updatedAtTo);
575575
}
576576
$exportData = $this->_connection->fetchAll($select);

app/code/Magento/CatalogImportExport/Model/Import/Proxy/Product.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Product extends \Magento\Catalog\Model\Product
1515
* DO NOT Initialize resources.
1616
*
1717
* @return void
18+
* @phpcs:disable Magento2.CodeAnalysis.EmptyBlock.DetectedFunction
1819
*/
1920
protected function _construct()
2021
{

app/code/Magento/ImportExport/Model/AbstractModel.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ public function __construct(
6060

6161
/**
6262
* Log debug data to file.
63+
*
6364
* Log file dir: var/log/import_export/%Y/%m/%d/%time%_%operation_type%_%entity_type%.log
6465
*
6566
* @param mixed $debugData
67+
*
6668
* @return $this
6769
*/
6870
public function addLogComment($debugData)
@@ -89,9 +91,11 @@ public function getFormatedLogTrace()
8991
{
9092
$trace = '';
9193
$lineNumber = 1;
94+
9295
foreach ($this->_logTrace as &$info) {
93-
$trace .= $lineNumber++ . ': ' . $info . "\n";
96+
$trace .= ($lineNumber++) . ': ' . $info . "\n";
9497
}
98+
9599
return $trace;
96100
}
97101
}

0 commit comments

Comments
 (0)