Skip to content

Commit

Permalink
PHPCBF
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jun 5, 2024
1 parent a1a1e16 commit 2de75fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/WP_SQLite_Translator_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function testShowCreateTableNotFound() {
'SHOW CREATE TABLE _no_such_table;'
);
$results = $this->engine->get_query_results();
$this->assertCount(0, $results);
$this->assertCount( 0, $results );
}
public function testShowCreateTable1() {
$this->assertQuery(
Expand Down
8 changes: 4 additions & 4 deletions wp-includes/sqlite/class-wp-sqlite-translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3238,8 +3238,8 @@ private function execute_drop() {
*/
private function execute_show() {
$this->rewriter->skip();
$what1 = strtoupper($this->rewriter->consume()->token);
$what2 = strtoupper($this->rewriter->consume()->token);
$what1 = strtoupper( $this->rewriter->consume()->token );
$what2 = strtoupper( $this->rewriter->consume()->token );
$what = $what1 . ' ' . $what2;
switch ( $what ) {
case 'CREATE PROCEDURE':
Expand Down Expand Up @@ -3343,7 +3343,7 @@ private function execute_show() {
$columns = $this->get_columns_from( $table_name );
$keys = $this->get_keys( $table_name );

if( empty( $columns ) ) {
if ( empty( $columns ) ) {
$this->set_results_from_fetched_data(
array()
);
Expand Down Expand Up @@ -3460,7 +3460,7 @@ private function execute_show() {
':param' => $table_expression->value,
)
);

$this->set_results_from_fetched_data(
array_column(
$stmt->fetchAll( $this->pdo_fetch_mode ),
Expand Down

0 comments on commit 2de75fd

Please sign in to comment.