Code Duplication    Length = 11-12 lines in 3 locations

src/Conversation.php 1 location

@@ 53-64 (lines=12) @@
50
     *
51
     * @return void
52
     */
53
    public function __construct()
54
    {
55
        $this->connect = new mysqli(
56
            getenv('DB_HOST'),
57
            getenv('DB_USER'),
58
            getenv('DB_PASSWORD'),
59
            getenv('DB_NAME')
60
        );
61
        $this->obTime = new Time();
62
        $this->obUser = new User();
63
        $this->array = array();
64
    }
65
66
    /**
67
     * Fetch data from DB and show to user.

src/Search.php 1 location

@@ 51-61 (lines=11) @@
48
     *
49
     * @return void
50
     */
51
    public function __construct()
52
    {
53
        $this->connect = new mysqli(
54
            getenv('DB_HOST'),
55
            getenv('DB_USER'),
56
            getenv('DB_PASSWORD'),
57
            getenv('DB_NAME')
58
        );
59
        $this->obTime = new Time();
60
        $this->array = array();
61
    }
62
63
    /**
64
     * Fetch Search Item from the DB

src/SideBar.php 1 location

@@ 51-61 (lines=11) @@
48
     *
49
     * @return void
50
     */
51
    public function __construct()
52
    {
53
        $this->connect = new mysqli(
54
            getenv('DB_HOST'),
55
            getenv('DB_USER'),
56
            getenv('DB_PASSWORD'),
57
            getenv('DB_NAME')
58
        );
59
        $this->obTime = new Time();
60
        $this->array = array();
61
    }
62
63
    /**
64
     * Load Sidebar for the user containing all the names of the people