@@ -149,7 +149,7 @@ public function create_fragment_for_context( string $html, string $context_eleme
149149 }
150150
151151 // Parse wrapper to position at the target context element.
152- $ wrapper = static ::create_fragment ( $ wrapper_html . " <span>x</span> " );
152+ $ wrapper = static ::create_fragment ( $ wrapper_html . ' <span>x</span> ' );
153153 if ( null === $ wrapper ) {
154154 return null ;
155155 }
@@ -293,7 +293,7 @@ private static function process_placeholder(
293293 return false ;
294294 }
295295
296- $ value = $ template ->replacements [ $ placeholder ];
296+ $ value = $ template ->replacements [ $ placeholder ];
297297 $ used_keys [ $ placeholder ] = true ;
298298
299299 if ( is_string ( $ value ) ) {
@@ -523,7 +523,7 @@ private static function process_attribute_value(
523523 return false ;
524524 }
525525
526- $ value = $ template ->replacements [ $ placeholder ];
526+ $ value = $ template ->replacements [ $ placeholder ];
527527 $ used_keys [ $ placeholder ] = true ;
528528
529529 // Template in attribute context is invalid.
@@ -573,8 +573,8 @@ private static function process_attribute_value(
573573
574574 // Static text before placeholder.
575575 if ( $ match_start > $ offset ) {
576- $ segment = substr ( $ raw_value , $ offset , $ match_start - $ offset );
577- $ decoded = WP_HTML_Decoder::decode_attribute ( $ segment );
576+ $ segment = substr ( $ raw_value , $ offset , $ match_start - $ offset );
577+ $ decoded = WP_HTML_Decoder::decode_attribute ( $ segment );
578578 $ value_html .= strtr ( $ decoded , self ::ESCAPE_MAP );
579579 }
580580
@@ -586,8 +586,8 @@ private static function process_attribute_value(
586586
587587 // Trailing static text after last placeholder.
588588 if ( $ offset < $ end ) {
589- $ segment = substr ( $ raw_value , $ offset );
590- $ decoded = WP_HTML_Decoder::decode_attribute ( $ segment );
589+ $ segment = substr ( $ raw_value , $ offset );
590+ $ decoded = WP_HTML_Decoder::decode_attribute ( $ segment );
591591 $ value_html .= strtr ( $ decoded , self ::ESCAPE_MAP );
592592 }
593593
0 commit comments