Code Duplication    Length = 6-9 lines in 2 locations

class/adodb.php 1 location

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

src/Fwlib/Bridge/Adodb.php 1 location

@@ 939-947 (lines=9) @@
936
937
            return '';
938
939
        } elseif ($this->isDbMysql()) {
940
            // Check 'type'
941
            foreach ($arCol as $k => $v) {
942
                if (isset($v->type) && 'timestamp' == $v->type) {
943
                    return $k;
944
                }
945
            }
946
947
        } else {
948
            // Do not trigger error, null means no implemented.
949
            // Use '||' to fool code inspection.
950
            return null || trigger_error(