@@ -1552,7 +1552,7 @@ public function getImagesFromRow(array $rowData)
1552
1552
* @SuppressWarnings(PHPMD.NPathComplexity)
1553
1553
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
1554
1554
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
1555
- * @throws \Magento\Framework\Exception\ LocalizedException
1555
+ * @throws LocalizedException
1556
1556
*/
1557
1557
protected function _saveProducts ()
1558
1558
{
@@ -1816,7 +1816,7 @@ protected function _saveProducts()
1816
1816
) {
1817
1817
$ attrValue = $ this ->dateTime ->formatDate ($ attrValue , false );
1818
1818
} elseif ('datetime ' == $ attribute ->getBackendType () && strtotime ($ attrValue )) {
1819
- $ attrValue = gmdate (
1819
+ $ attrValue = $ this -> dateTime -> gmDate (
1820
1820
'Y-m-d H:i:s ' ,
1821
1821
$ this ->_localeDate ->date ($ attrValue )->getTimestamp ()
1822
1822
);
@@ -2031,8 +2031,7 @@ public function getUploader()
2031
2031
* Return a new file name if the same file is already exists.
2032
2032
*
2033
2033
* @param string $fileName
2034
- * @param bool $renameFileOff [optional] boolean to pass. Default is false
2035
- * which will set not to rename the file after import.
2034
+ * @param bool $renameFileOff
2036
2035
* @return string
2037
2036
*/
2038
2037
protected function uploadMediaFiles ($ fileName , $ renameFileOff = false )
@@ -2241,7 +2240,7 @@ protected function _saveStockItem()
2241
2240
$ stockItemDo ->setData ($ row );
2242
2241
$ row ['is_in_stock ' ] = $ this ->stockStateProvider ->verifyStock ($ stockItemDo );
2243
2242
if ($ this ->stockStateProvider ->verifyNotification ($ stockItemDo )) {
2244
- $ row ['low_stock_date ' ] = gmdate (
2243
+ $ row ['low_stock_date ' ] = $ this -> dateTime -> gmDate (
2245
2244
'Y-m-d H:i:s ' ,
2246
2245
(new \DateTime ())->getTimestamp ()
2247
2246
);
@@ -2757,9 +2756,7 @@ private function _customFieldsMapping($rowData)
2757
2756
}
2758
2757
2759
2758
/**
2760
- * Validate data rows and save bunches to DB
2761
- *
2762
- * @return $this|\Magento\ImportExport\Model\Import\Entity\AbstractEntity
2759
+ * {@inheritdoc}
2763
2760
*/
2764
2761
protected function _saveValidatedBunches ()
2765
2762
{
0 commit comments