Code Duplication    Length = 7-7 lines in 2 locations

majima/Dwoo/Plugins/Functions/PluginLink.php 1 location

@@ 30-36 (lines=7) @@
27
     */
28
    private $container;
29
30
    public function __construct(Core $core)
31
    {
32
        $this->core = $core;
33
        $globals = $core->getGlobals();
34
        $this->container = isset($globals['service_container']) ? $globals['service_container'] : null;
35
        parent::__construct($core);
36
    }
37
38
    public function process($path, $cacheBuster = null)
39
    {

majima/Dwoo/Plugins/Functions/PluginUrl.php 1 location

@@ 34-40 (lines=7) @@
31
     * PluginUrl constructor.
32
     * @param Core $core
33
     */
34
    public function __construct(Core $core)
35
    {
36
        $this->core = $core;
37
        $globals = $core->getGlobals();
38
        $this->container = isset($globals['service_container']) ? $globals['service_container'] : null;
39
        parent::__construct($core);
40
    }
41
42
    /**
43
     * @param $name