diff --git a/src/Whip_Host.php b/src/Whip_Host.php index 8b386f9..af18121 100644 --- a/src/Whip_Host.php +++ b/src/Whip_Host.php @@ -40,6 +40,7 @@ public static function name() { * In a non-WordPress content this function just returns the passed name. * * @param string $name The current name of the host. + * * @return string The filtered name of the host. */ private static function filterName( $name ) { @@ -96,6 +97,7 @@ public static function hostingPageUrl() { * In a non-WordPress context this function just returns a link to the Yoast hosting page. * * @param string $url The previous URL. + * * @return string The new URL to the hosting overview page. */ private static function filterHostingPageUrl( $url ) { diff --git a/src/Whip_MessageFormatter.php b/src/Whip_MessageFormatter.php index e966d9d..b09c21e 100644 --- a/src/Whip_MessageFormatter.php +++ b/src/Whip_MessageFormatter.php @@ -14,6 +14,7 @@ final class Whip_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 ) { @@ -24,6 +25,7 @@ public static function strong( $toWrap ) { * 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 ) { @@ -34,6 +36,7 @@ public static function paragraph( $toWrap ) { * 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 ) { diff --git a/src/presenters/Whip_WPMessagePresenter.php b/src/presenters/Whip_WPMessagePresenter.php index 60ca54f..efeabac 100644 --- a/src/presenters/Whip_WPMessagePresenter.php +++ b/src/presenters/Whip_WPMessagePresenter.php @@ -58,6 +58,7 @@ public function registerHooks() { * * @deprecated 1.2.0 Use the Whip_WPMessagePresenter::registerHooks() method instead. * @codeCoverageIgnore + * * @phpcs:disable Generic.NamingConventions.CamelCapsFunctionName */ public function register_hooks() { diff --git a/tests/WPMessageDismissListenerTest.php b/tests/WPMessageDismissListenerTest.php index 58f8f52..46b4dc5 100644 --- a/tests/WPMessageDismissListenerTest.php +++ b/tests/WPMessageDismissListenerTest.php @@ -19,11 +19,11 @@ class WPMessageDismissListener extends Whip_TestCase { * * @dataProvider listenProvider * - * @param string $action The action to test. - * @param string $nonce The nonce to test. + * @param string $action The action to test. + * @param string $nonce The nonce to test. * @param int $verifyNonceTimes The times to call wp_verify_nonce. - * @param bool $isCorrectNonce Whether the nonce is correct. - * @param bool $dismissTimes The times to call dismiss. + * @param bool $isCorrectNonce Whether the nonce is correct. + * @param bool $dismissTimes The times to call dismiss. */ public function testDismiss( $action, $nonce, $verifyNonceTimes, $isCorrectNonce, $dismissTimes ) { $dismisser = $this->getMockBuilder( 'Whip_MessageDismisser' )