Code Duplication    Length = 6-9 lines in 2 locations

class/adodb.php 1 location

@@ 493-498 (lines=6) @@
490
			//where id = object_id('ztb_yh') and a.type=b.type and a.usertype = b.usertype
491
492
		}
493
		elseif ($this->IsDbMysql()) {
494
			// Check 'type'
495
			foreach ($ar_col as $k => $v)
496
				if (isset($v->type) && 'timestamp' == $v->type)
497
					return $k;
498
		}
499
		else {
500
			die("FindColTs not implemented!\n");
501
		}

src/Fwlib/Bridge/Adodb.php 1 location

@@ 951-959 (lines=9) @@
948
949
            return '';
950
951
        } elseif ($this->isDbMysql()) {
952
            // Check 'type'
953
            foreach ($arCol as $k => $v) {
954
                if (isset($v->type) && 'timestamp' == $v->type) {
955
                    return $k;
956
                }
957
            }
958
959
        } else {
960
            // Do not trigger error, null means no implemented.
961
            // Use '||' to fool code inspection.
962
            return null ||