Skip to content

Commit

Permalink
format php
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed Sep 13, 2023
1 parent fec39fa commit 6d894c4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public function data_should_fail_merge() {
public function test_should_merge( array $font1, array $font2, array $expected_result ) {
$result = WP_Font_Family_Utils::merge_fonts_data( $font1, $font2 );
$this->assertSame( $expected_result, $result, 'Merged font data should match expected result.' );
$json_result = wp_json_encode( $result );
$this->assertStringContainsString('"fontFace":[', $json_result, 'fontFace data should be enconded as an array and not an object.' );
$json_result = wp_json_encode( $result );
$this->assertStringContainsString( '"fontFace":[', $json_result, 'fontFace data should be enconded as an array and not an object.' );
}

/**
Expand Down Expand Up @@ -230,7 +230,7 @@ public function data_should_merge() {
),
),
),
'repeated font faces with non consecutive index positions' => array (
'repeated font faces with non consecutive index positions' => array(
'font1' => array(
'slug' => 'piazzolla',
'name' => 'Piazzolla',
Expand Down Expand Up @@ -294,7 +294,7 @@ public function data_should_merge() {
),
),
),
)
),
);
}
}

0 comments on commit 6d894c4

Please sign in to comment.