Code Duplication    Length = 11-11 lines in 2 locations

Controllers/Backend/PaymentKlarna.php 1 location

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

Controllers/Frontend/PaymentKlarna.php 1 location

@@ 76-86 (lines=11) @@
73
    /**
74
     * {@inheritdoc}
75
     */
76
    public function get($name)
77
    {
78
        if (version_compare(Shopware::VERSION, '4.2.0', '<') && Shopware::VERSION != '___VERSION___') {
79
            if ($name == 'pluginlogger') {
80
                $name = 'log';
81
            }
82
            $name = ucfirst($name);
83
            return Shopware()->Bootstrap()->getResource($name);
84
        }
85
        return parent::get($name);
86
    }
87
    
88
    /**
89
     * Index action method.