Code Duplication    Length = 3-4 lines in 2 locations

source/MySQLiMultiple.php 2 locations

@@ 43-45 (lines=3) @@
40
    {
41
        $stmt     = $this->mySQLconnection->stmt_init();
42
        $alocated = $stmt->prepare($qry);
43
        if ($stmt->errno != 0) {
44
            throw new Exception('MySQL error, when preparing statement ' . $stmt->error . ' (' . $qry . ')');
45
        }
46
        if ($alocated) {
47
            foreach ($prmtrs as $vParams) {
48
                $param_type = $this->setVariableTypeForMySqlStatementsMany($vParams);
@@ 56-59 (lines=4) @@
53
                }
54
                call_user_func_array([$stmt, 'bind_param'], $aParams);
55
                $stmt->execute();
56
                if ($stmt->errno != 0) {
57
                    throw new Exception('MySQL error, on executing prepared statement '
58
                    . $stmt->error . ' (' . $qry . ')');
59
                }
60
            }
61
            $stmt->close();
62
        }