Code Duplication    Length = 7-10 lines in 3 locations

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

@@ 1018-1027 (lines=10) @@
1015
1016
		$endArray = [];
1017
1018
		foreach ( $result as $table ) {
1019
			$vars = get_object_vars( $table );
1020
			$table = array_pop( $vars );
1021
1022
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
1023
				if ( strpos( $table, 'sqlite_' ) !== 0 ) {
1024
					$endArray[] = $table;
1025
				}
1026
			}
1027
		}
1028
1029
		return $endArray;
1030
	}

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

@@ 1242-1249 (lines=8) @@
1239
1240
		$endArray = [];
1241
1242
		foreach ( $result as $table ) {
1243
			$vars = get_object_vars( $table );
1244
			$table = array_pop( $vars );
1245
1246
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
1247
				$endArray[] = $table;
1248
			}
1249
		}
1250
1251
		return $endArray;
1252
	}

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
	}