File tree 8 files changed +19
-2
lines changed
Controller/Adminhtml/Export
8 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 15
15
use Magento \Framework \Phrase ;
16
16
use Opengento \CategoryImportExport \Model \Session \DownloadContext ;
17
17
18
+ use function basename ;
19
+
18
20
class CategoryDownload extends Action implements HttpGetActionInterface
19
21
{
20
22
public const ADMIN_RESOURCE = 'Opengento_CategoryImportExport::export ' ;
Original file line number Diff line number Diff line change 14
14
use Magento \Framework \Data \OptionSourceInterface ;
15
15
use Magento \Framework \Exception \LocalizedException ;
16
16
17
+ use function sprintf ;
18
+
17
19
class Attributes implements OptionSourceInterface
18
20
{
19
21
private const EXCLUDE_ATTRIBUTES = [
Original file line number Diff line number Diff line change 14
14
use Magento \Store \Model \StoreManagerInterface ;
15
15
use Opengento \CategoryImportExport \Model \Import \Categories as ImportCategories ;
16
16
17
+ use function array_unshift ;
18
+
17
19
class Categories
18
20
{
19
21
public function __construct (
Original file line number Diff line number Diff line change 15
15
use Magento \Framework \Filesystem ;
16
16
use Opengento \CategoryImportExport \Model \Csv \Options ;
17
17
18
+ use function array_keys ;
19
+ use function array_merge ;
20
+ use function array_unshift ;
21
+ use function time ;
22
+
18
23
class ToCsv
19
24
{
20
25
public function __construct (
Original file line number Diff line number Diff line change 12
12
use Magento \Framework \File \Csv ;
13
13
use Opengento \CategoryImportExport \Model \Csv \Options ;
14
14
15
+ use function array_combine ;
16
+ use function array_shift ;
17
+
15
18
class FromCsv
16
19
{
17
20
public function __construct (
Original file line number Diff line number Diff line change 11
11
use Magento \Framework \Exception \LocalizedException ;
12
12
use Magento \Framework \Setup \ModuleDataSetupInterface ;
13
13
use Magento \Framework \Setup \Patch \DataPatchInterface ;
14
- use Zend_Validate_Exception ;
15
14
16
15
class AddCategoryCodeAttributeV1 implements DataPatchInterface
17
16
{
@@ -32,7 +31,6 @@ public function getAliases(): array
32
31
33
32
/**
34
33
* @throws LocalizedException
35
- * @throws Zend_Validate_Exception
36
34
*/
37
35
public function apply (): self
38
36
{
Original file line number Diff line number Diff line change 13
13
use Magento \Catalog \Model \ResourceModel \Category \CollectionFactory ;
14
14
use Magento \Framework \Setup \Patch \DataPatchInterface ;
15
15
16
+ use function str_replace ;
17
+ use function strtolower ;
18
+
16
19
class PopulateCategoryCodeV1 implements DataPatchInterface
17
20
{
18
21
public function __construct (
Original file line number Diff line number Diff line change 12
12
use Magento \Framework \View \Element \UiComponent \Control \ButtonProviderInterface ;
13
13
use Opengento \CategoryImportExport \Model \Session \DownloadContext ;
14
14
15
+ use function sprintf ;
16
+
15
17
class Download implements ButtonProviderInterface
16
18
{
17
19
public function __construct (
You can’t perform that action at this time.
0 commit comments