HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: agritoday (1002)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/agritoday/www/wp-content/plugins/wordpress-seo/vendor/yoast/whip/src/MessageFormatter.php
<?php

namespace Yoast\WHIPv2;

/**
 * A helper class to format messages.
 */
final class MessageFormatter {

	/**
	 * Wraps a piece of text in HTML strong tags.
	 *
	 * @param string $toWrap The text to wrap.
	 *
	 * @return string The wrapped text.
	 */
	public static function strong( $toWrap ) {
		return '<strong>' . $toWrap . '</strong>';
	}

	/**
	 * Wraps a piece of text in HTML p tags.
	 *
	 * @param string $toWrap The text to wrap.
	 *
	 * @return string The wrapped text.
	 */
	public static function paragraph( $toWrap ) {
		return '<p>' . $toWrap . '</p>';
	}

	/**
	 * Wraps a piece of text in HTML p and strong tags.
	 *
	 * @param string $toWrap The text to wrap.
	 *
	 * @return string The wrapped text.
	 */
	public static function strongParagraph( $toWrap ) {
		return self::paragraph( self::strong( $toWrap ) );
	}
}