Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordpres.../vendor/yoast/whip/src
File: MessageFormatter.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WHIPv2;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* A helper class to format messages.
[5] Fix | Delete
*/
[6] Fix | Delete
final class MessageFormatter {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Wraps a piece of text in HTML strong tags.
[10] Fix | Delete
*
[11] Fix | Delete
* @param string $toWrap The text to wrap.
[12] Fix | Delete
*
[13] Fix | Delete
* @return string The wrapped text.
[14] Fix | Delete
*/
[15] Fix | Delete
public static function strong( $toWrap ) {
[16] Fix | Delete
return '<strong>' . $toWrap . '</strong>';
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Wraps a piece of text in HTML p tags.
[21] Fix | Delete
*
[22] Fix | Delete
* @param string $toWrap The text to wrap.
[23] Fix | Delete
*
[24] Fix | Delete
* @return string The wrapped text.
[25] Fix | Delete
*/
[26] Fix | Delete
public static function paragraph( $toWrap ) {
[27] Fix | Delete
return '<p>' . $toWrap . '</p>';
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* Wraps a piece of text in HTML p and strong tags.
[32] Fix | Delete
*
[33] Fix | Delete
* @param string $toWrap The text to wrap.
[34] Fix | Delete
*
[35] Fix | Delete
* @return string The wrapped text.
[36] Fix | Delete
*/
[37] Fix | Delete
public static function strongParagraph( $toWrap ) {
[38] Fix | Delete
return self::paragraph( self::strong( $toWrap ) );
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function