Code Duplication    Length = 11-11 lines in 2 locations

Controllers/Backend/PaymentKlarna.php 1 location

@@ 46-56 (lines=11) @@
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function get($name)
47
    {
48
        if (version_compare(Shopware::VERSION, '4.2.0', '<') && Shopware::VERSION != '___VERSION___') {
49
            if ($name == 'pluginlogger') {
50
                $name = 'log';
51
            }
52
            $name = ucfirst($name);
53
            return Shopware()->Bootstrap()->getResource($name);
54
        }
55
        return parent::get($name);
56
    }
57
58
    /**
59
     * @return \Doctrine\ORM\Query

Controllers/Frontend/PaymentKlarna.php 1 location

@@ 49-59 (lines=11) @@
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function get($name)
50
    {
51
        if (version_compare(Shopware::VERSION, '4.2.0', '<') && Shopware::VERSION != '___VERSION___') {
52
            if ($name == 'pluginlogger') {
53
                $name = 'log';
54
            }
55
            $name = ucfirst($name);
56
            return Shopware()->Bootstrap()->getResource($name);
57
        }
58
        return parent::get($name);
59
    }
60
    
61
    /**
62
     * Index action method.