Code Duplication    Length = 7-10 lines in 3 locations

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
	}

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

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

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

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