Skip to content

Commit 8c4e96f

Browse files
committed
Fix formatting
1 parent 925ed48 commit 8c4e96f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/DB_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ public function size( $args, $assoc_args ) {
12101210
DB_NAME
12111211
)
12121212
);
1213-
$db_name = DB_NAME;
1213+
$db_name = DB_NAME;
12141214
}
12151215

12161216
// Add the database size to the list.

src/DB_Command_SQLite.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ protected function sqlite_query( $query, $assoc_args ) {
208208
$is_row_modifying_query = preg_match( '/\b(UPDATE|DELETE|INSERT|REPLACE)\b/i', $query );
209209

210210
if ( $is_row_modifying_query ) {
211-
$stmt = $pdo->prepare( $query );
211+
$stmt = $pdo->prepare( $query );
212212
$stmt->execute();
213213
$affected_rows = $stmt->rowCount();
214214
WP_CLI::success( "Query succeeded. Rows affected: {$affected_rows}" );
@@ -252,10 +252,10 @@ protected function display_table( $headers, $rows ) {
252252
}
253253

254254
// Display header.
255-
$separator = '+';
255+
$separator = '+';
256256
$header_line = '|';
257257
foreach ( $headers as $header ) {
258-
$separator .= str_repeat( '-', $widths[ $header ] + 2 ) . '+';
258+
$separator .= str_repeat( '-', $widths[ $header ] + 2 ) . '+';
259259
$header_line .= ' ' . str_pad( $header, $widths[ $header ] ) . ' |';
260260
}
261261

@@ -308,7 +308,7 @@ protected function sqlite_export( $file, $assoc_args ) {
308308
try {
309309
// Export schema and data as SQL.
310310
fwrite( $output, "-- SQLite database dump\n" );
311-
fwrite( $output, "-- Database: " . basename( $db_path ) . "\n\n" );
311+
fwrite( $output, '-- Database: ' . basename( $db_path ) . "\n\n" );
312312

313313
// Get all tables.
314314
$tables = $pdo->query( "SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' ORDER BY name" )->fetchAll( PDO::FETCH_COLUMN );

0 commit comments

Comments
 (0)