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

@@ 859-865 (lines=7) @@
856
			"SELECT tablename FROM pg_tables WHERE schemaname = $eschema", $fname );
857
		$endArray = [];
858
859
		foreach ( $result as $table ) {
860
			$vars = get_object_vars( $table );
861
			$table = array_pop( $vars );
862
			if ( !$prefix || strpos( $table, $prefix ) === 0 ) {
863
				$endArray[] = $table;
864
			}
865
		}
866
867
		return $endArray;
868
	}

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

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