Code Duplication    Length = 5-9 lines in 2 locations

class/adodb.php 1 location

@@ 194-198 (lines=5) @@
191
		// Use global var so multi Adodb object can be included in count.
192
		//	(Done in func now)
193
		// Use standalone func to can be easy extend by sub class.
194
		if (in_array($name, array(
195
			'Execute', 'SelectLimit', 'GetOne', 'GetRow', 'GetAll',
196
			'GetCol', 'GetAssoc', 'ExecuteCursor'
197
			)))
198
			$this->CountDbQueryTimes();
199
200
		return call_user_func_array(array($this->__conn, $name), $arg);
201
	} // end of func __call

src/Fwlib/Bridge/Adodb.php 1 location

@@ 217-225 (lines=9) @@
214
        // Use static var so multi Adodb object can be included in count.
215
        // Use standalone func for easy extend by sub class.
216
        // CacheXxx() method is not counted.
217
        if (in_array(
218
            $name,
219
            [
220
                'Execute',
221
                'SelectLimit',
222
                'GetOne',
223
                'GetRow',
224
                'GetAll',
225
                'GetCol',
226
                'GetAssoc',
227
                'ExecuteCursor',
228
            ]