Skip to content

Commit d0e4384

Browse files
committed
Merge branch 'no-author/import-export' of github.com:fredden/magento2 into 2.4-develop-prs
2 parents f866ee7 + 1a97919 commit d0e4384

File tree

12 files changed

+9
-25
lines changed

12 files changed

+9
-25
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
/**
1515
* Export Advanced Pricing
1616
*
17-
* @author Magento Core Team <core@magentocommerce.com>
1817
* @SuppressWarnings(PHPMD.TooManyFields)
1918
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
2019
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2120
*/
2221
class AdvancedPricing extends \Magento\CatalogImportExport\Model\Export\Product
2322
{
24-
const ENTITY_ADVANCED_PRICING = 'advanced_pricing';
23+
public const ENTITY_ADVANCED_PRICING = 'advanced_pricing';
2524

2625
/**
2726
* @var \Magento\CatalogImportExport\Model\Import\Product\StoreResolver
@@ -568,10 +567,10 @@ protected function getTierPrices(array $listSku, $table)
568567
if (isset($price[0]) && !empty($price[0]) || isset($price[1]) && !empty($price[1])) {
569568
$select->orWhere('ap.percentage_value IS NOT NULL');
570569
}
571-
if (isset($updatedAtFrom) && !empty($updatedAtFrom)) {
570+
if (isset($updatedAtFrom)) {
572571
$select->where('cpe.updated_at >= ?', $updatedAtFrom);
573572
}
574-
if (isset($updatedAtTo) && !empty($updatedAtTo)) {
573+
if (isset($updatedAtTo)) {
575574
$select->where('cpe.updated_at <= ?', $updatedAtTo);
576575
}
577576
$exportData = $this->_connection->fetchAll($select);

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
/**
88
* Import proxy product model
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\CatalogImportExport\Model\Import\Proxy;
1311

@@ -17,6 +15,7 @@ class Product extends \Magento\Catalog\Model\Product
1715
* DO NOT Initialize resources.
1816
*
1917
* @return void
18+
* @phpcs:disable Magento2.CodeAnalysis.EmptyBlock.DetectedFunction
2019
*/
2120
protected function _construct()
2221
{

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
/**
88
* Import proxy product resource
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\CatalogImportExport\Model\Import\Proxy\Product;
1311

app/code/Magento/ImportExport/Block/Adminhtml/Export/Edit.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
/**
88
* Export edit block
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\ImportExport\Block\Adminhtml\Export;
1311

app/code/Magento/ImportExport/Block/Adminhtml/Export/Edit/Form.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
/**
88
* Export edit form block
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\ImportExport\Block\Adminhtml\Export\Edit;
1311

app/code/Magento/ImportExport/Block/Adminhtml/History.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* Adminhtml import history page content block
1010
*
1111
* @api
12-
* @author Magento Core Team <core@magentocommerce.com>
1312
* @since 100.0.2
1413
*/
1514
class History extends \Magento\Backend\Block\Widget\Grid\Container

app/code/Magento/ImportExport/Block/Adminhtml/Import/Edit.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
/**
88
* Import edit block
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\ImportExport\Block\Adminhtml\Import;
1311

app/code/Magento/ImportExport/Block/Adminhtml/Import/Edit/Before.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
/**
88
* Block before edit form
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\ImportExport\Block\Adminhtml\Import\Edit;
1311

app/code/Magento/ImportExport/Block/Adminhtml/Import/Edit/Form.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
/**
1313
* Import edit form block
14-
*
15-
* @author Magento Core Team <core@magentocommerce.com>
1614
*/
1715
class Form extends \Magento\Backend\Block\Widget\Form\Generic
1816
{

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
/**
1111
* Operation abstract class
12-
*
13-
* @author Magento Core Team <core@magentocommerce.com>
1412
*/
1513
abstract class AbstractModel extends \Magento\Framework\DataObject
1614
{
@@ -62,9 +60,11 @@ public function __construct(
6260

6361
/**
6462
* Log debug data to file.
63+
*
6564
* Log file dir: var/log/import_export/%Y/%m/%d/%time%_%operation_type%_%entity_type%.log
6665
*
6766
* @param mixed $debugData
67+
*
6868
* @return $this
6969
*/
7070
public function addLogComment($debugData)
@@ -91,9 +91,11 @@ public function getFormatedLogTrace()
9191
{
9292
$trace = '';
9393
$lineNumber = 1;
94+
9495
foreach ($this->_logTrace as &$info) {
95-
$trace .= $lineNumber++ . ': ' . $info . "\n";
96+
$trace .= ($lineNumber++) . ': ' . $info . "\n";
9697
}
98+
9799
return $trace;
98100
}
99101
}

app/code/Magento/ImportExport/Model/Import/Adapter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
* Import adapter model
1313
* @Deprecated
1414
* @see \Magento\ImportExport\Model\Import\Source\Factory
15-
* @author Magento Core Team <core@magentocommerce.com>
1615
*/
1716
class Adapter
1817
{

app/code/Magento/TaxImportExport/Block/Adminhtml/Rate/Grid/Renderer/Country.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
/**
88
* Adminhtml tax rates grid item renderer country
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\TaxImportExport\Block\Adminhtml\Rate\Grid\Renderer;
1311

0 commit comments

Comments
 (0)