Code Duplication    Length = 15-15 lines in 2 locations

lib/Gnf/db/base.php 2 locations

@@ 59-73 (lines=15) @@
56
		}
57
	}
58
59
	public function sqlCommit()
60
	{
61
		$this->transactionDepth--;
62
		if ($this->transactionDepth == 0) {
63
			$this->transactionCommit();
64
			$this->transactionError = false;
65
		} else {
66
			if ($this->configIsSupportNestedTransaction()) {
67
				$this->transactionCommit();
68
			}
69
			if ($this->transactionDepth < 0) {
70
				throw new Exception('[mysql] transaction underflow');
71
			}
72
		}
73
	}
74
75
	public function sqlRollback()
76
	{
@@ 75-89 (lines=15) @@
72
		}
73
	}
74
75
	public function sqlRollback()
76
	{
77
		$this->transactionDepth--;
78
		if ($this->transactionDepth == 0) {
79
			$this->transactionRollback();
80
			$this->transactionError = false;
81
		} else {
82
			if ($this->configIsSupportNestedTransaction()) {
83
				$this->transactionRollback();
84
			}
85
			if ($this->transactionDepth < 0) {
86
				throw new Exception('[mysql] transaction underflow');
87
			}
88
		}
89
	}
90
91
	public function isTransactionActive()
92
	{