Code Duplication    Length = 7-10 lines in 3 locations

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
	}

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

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

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

@@ 1257-1264 (lines=8) @@
1254
1255
		$endArray = [];
1256
1257
		foreach ( $result as $table ) {
1258
			$vars = get_object_vars( $table );
1259
			$table = array_pop( $vars );
1260
1261
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
1262
				$endArray[] = $table;
1263
			}
1264
		}
1265
1266
		return $endArray;
1267
	}