Code Duplication    Length = 9-9 lines in 2 locations

Subscribers/CronJob.php 1 location

@@ 67-75 (lines=9) @@
64
    /**
65
     * @return ImageImport
66
     */
67
    public function getImageImport()
68
    {
69
        return new ImageImport(
70
            Shopware()->Models(),
71
            $this->getHelper(),
72
            Shopware()->Container()->get('thumbnail_manager'),
73
            new Logger(Shopware()->Db())
74
        );
75
    }
76
77
    /**
78
     * Import images of new products

Tests/Shopware/Connect/ConnectTestHelper.php 1 location

@@ 124-132 (lines=9) @@
121
    /**
122
     * @return ImageImport
123
     */
124
    public function getImageImport()
125
    {
126
        return new ImageImport(
127
            Shopware()->Models(),
128
            $this->getHelper(),
129
            Shopware()->Container()->get('thumbnail_manager'),
130
            new Logger(Shopware()->Db())
131
        );
132
    }
133
134
    public function changeCategoryConnectMappingForCategoryTo($categoryId, $mapping)
135
    {