Skip to content

Commit fc2e2ec

Browse files
committed
Use strict comparison.
1 parent 8b5c852 commit fc2e2ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎plugins/optimization-detective/tests/class-optimization-detective-test-helpers.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function assert_snapshot_equals( string $directory ): void {
293293
}
294294

295295
$text = $processor->get_modifiable_text();
296-
if ( empty( $text ) ) {
296+
if ( '' === $text ) {
297297
continue;
298298
}
299299

@@ -333,7 +333,7 @@ public function assert_snapshot_equals( string $directory ): void {
333333
}
334334

335335
$text = $processor->get_modifiable_text();
336-
if ( empty( $text ) ) {
336+
if ( '' === $text ) {
337337
continue;
338338
}
339339

@@ -355,7 +355,7 @@ public function assert_snapshot_equals( string $directory ): void {
355355
$processor = new WP_HTML_Tag_Processor( $buffer );
356356
while ( $processor->next_tag( array( 'tag_name' => 'STYLE' ) ) ) {
357357
$text = $processor->get_modifiable_text();
358-
if ( empty( $text ) ) {
358+
if ( '' === $text ) {
359359
continue;
360360
}
361361

0 commit comments

Comments
 (0)