Code Duplication    Length = 7-7 lines in 2 locations

src/Oci8Connection.php 2 locations

@@ 31-37 (lines=7) @@
28
        $this->resource = $this->connect($username, $password, $connectionString, $characterSet, $sessionMode);
29
    }
30
31
    public function changePassword($username, $oldPassword, $newPassword)
32
    {
33
        set_error_handler(static::getErrorHandler());
34
        $isSuccess = oci_password_change($this->resource, $username, $oldPassword, $newPassword);
35
        restore_error_handler();
36
        return $isSuccess;
37
    }
38
39
    public function close()
40
    {
@@ 115-121 (lines=7) @@
112
        return oci_client_version();
113
    }
114
115
    public function getNewCollection($tdo, $schema = null)
116
    {
117
        set_error_handler(static::getErrorHandler());
118
        $collection = oci_new_collection($this->resource, $tdo, $schema);
119
        restore_error_handler();
120
        return $collection;
121
    }
122
123
    public function getNewCursor()
124
    {