mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Fix the accidental camel case
This commit is contained in:
parent
2c8d379616
commit
579660b2c1
1 changed files with 3 additions and 3 deletions
|
@ -22,10 +22,10 @@ class PayLaterWCBlocksUtils {
|
|||
* @return string The block content with the content inserted.
|
||||
*/
|
||||
public static function insert_before_last_div( string $block_content, string $content_to_insert ): string {
|
||||
$lastIndex = strrpos( $block_content, '</div>' );
|
||||
$last_index = strrpos( $block_content, '</div>' );
|
||||
|
||||
if ( $lastIndex !== false ) {
|
||||
$block_content = substr_replace( $block_content, $content_to_insert, $lastIndex, 0 );
|
||||
if ( $last_index !== false ) {
|
||||
$block_content = substr_replace( $block_content, $content_to_insert, $last_index, 0 );
|
||||
}
|
||||
|
||||
return $block_content;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue