Code Duplication    Length = 7-10 lines in 3 locations

includes/libs/rdbms/database/DatabasePostgres.php 1 location

@@ 851-857 (lines=7) @@
848
			"SELECT tablename FROM pg_tables WHERE schemaname = $eschema", $fname );
849
		$endArray = [];
850
851
		foreach ( $result as $table ) {
852
			$vars = get_object_vars( $table );
853
			$table = array_pop( $vars );
854
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
855
				$endArray[] = $table;
856
			}
857
		}
858
859
		return $endArray;
860
	}

includes/libs/rdbms/database/DatabaseMysqlBase.php 1 location

@@ 1247-1254 (lines=8) @@
1244
1245
		$endArray = [];
1246
1247
		foreach ( $result as $table ) {
1248
			$vars = get_object_vars( $table );
1249
			$table = array_pop( $vars );
1250
1251
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
1252
				$endArray[] = $table;
1253
			}
1254
		}
1255
1256
		return $endArray;
1257
	}

includes/libs/rdbms/database/DatabaseSqlite.php 1 location

@@ 1008-1017 (lines=10) @@
1005
1006
		$endArray = [];
1007
1008
		foreach ( $result as $table ) {
1009
			$vars = get_object_vars( $table );
1010
			$table = array_pop( $vars );
1011
1012
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
1013
				if ( strpos( $table, 'sqlite_' ) !== 0 ) {
1014
					$endArray[] = $table;
1015
				}
1016
			}
1017
		}
1018
1019
		return $endArray;
1020
	}