Code Duplication    Length = 13-13 lines in 2 locations

lib/net/nehmer/blog/handler/link.php 1 location

@@ 49-61 (lines=13) @@
46
        return 'link';
47
    }
48
49
    public function get_schema_defaults()
50
    {
51
        $defaults = array();
52
        if (isset($_GET['article']))
53
        {
54
            $defaults['article'] = $_GET['article'];
55
        }
56
        else
57
        {
58
            $defaults['topic'] = $this->_topic->id;
59
        }
60
        return $defaults;
61
    }
62
63
    /**
64
     * DM2 creation callback, binds to the current content topic.

lib/net/nehmer/static/handler/link.php 1 location

@@ 44-56 (lines=13) @@
41
        return midcom_helper_datamanager2_schema::load_database($this->_config->get('schemadb_link'));
42
    }
43
44
    public function get_schema_defaults()
45
    {
46
        $defaults = array();
47
        if (isset($_GET['article']))
48
        {
49
            $defaults['article'] = $_GET['article'];
50
        }
51
        else
52
        {
53
            $defaults['topic'] = $this->_topic->id;
54
        }
55
        return $defaults;
56
    }
57
58
    /**
59
     * DM2 creation callback, binds to the current content topic.