Code Duplication    Length = 10-11 lines in 2 locations

src/database/ADOdbBase.php 1 location

@@ 34-44 (lines=11) @@
31
     * @param mixed                        $container
32
     * @param mixed                        $server_info
33
     */
34
    public function __construct(&$conn, $container, $server_info)
35
    {
36
        $this->container   = $container;
37
        $this->server_info = $server_info;
38
39
        $this->lang = $container->get('lang');
40
        $this->conf = $container->get('conf');
41
42
        $this->prtrace('instanced connection class');
43
        $this->conn = $conn;
44
    }
45
46
    /**
47
     * Sets the comment for an object in the database.

src/database/Postgres.php 1 location

@@ 43-52 (lines=10) @@
40
    protected $container;
41
    protected $server_info;
42
43
    public function __construct(&$conn, $container, $server_info)
44
    {
45
        //$this->prtrace('major_version :' . $this->major_version);
46
        $this->conn      = $conn;
47
        $this->container = $container;
48
49
        $this->lang        = $container->get('lang');
50
        $this->conf        = $container->get('conf');
51
        $this->server_info = $server_info;
52
    }
53
54
    /**
55
     * Fetch a URL (or array of URLs) for a given help page.