Code Duplication    Length = 7-10 lines in 3 locations

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

@@ 1235-1242 (lines=8) @@
1232
1233
		$endArray = [];
1234
1235
		foreach ( $result as $table ) {
1236
			$vars = get_object_vars( $table );
1237
			$table = array_pop( $vars );
1238
1239
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
1240
				$endArray[] = $table;
1241
			}
1242
		}
1243
1244
		return $endArray;
1245
	}

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

@@ 825-831 (lines=7) @@
822
			"SELECT tablename FROM pg_tables WHERE schemaname = $eschema", $fname );
823
		$endArray = [];
824
825
		foreach ( $result as $table ) {
826
			$vars = get_object_vars( $table );
827
			$table = array_pop( $vars );
828
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
829
				$endArray[] = $table;
830
			}
831
		}
832
833
		return $endArray;
834
	}

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

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