• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / whip / 6985375056

24 Nov 2023 10:53PM UTC coverage: 28.713% (+1.2%) from 27.5%
6985375056

push

github

web-flow
Merge pull request #152 from Yoast/JRF/ghactions-switch-to-coveralls-reporter

GH Actions: switch to Coveralls action runner to upload reports

87 of 303 relevant lines covered (28.71%)

2.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Whip_MessageFormatter.php
1
<?php
2
/**
3
 * WHIP libary file.
4
 *
5
 * @package Yoast\WHIP
6
 */
7

8
/**
9
 * A helper class to format messages.
10
 */
11
final class Whip_MessageFormatter {
12

13
        /**
14
         * Wraps a piece of text in HTML strong tags.
15
         *
16
         * @param string $toWrap The text to wrap.
17
         *
18
         * @return string The wrapped text.
19
         */
20
        public static function strong( $toWrap ) {
×
21
                return '<strong>' . $toWrap . '</strong>';
×
22
        }
23

24
        /**
25
         * Wraps a piece of text in HTML p tags.
26
         *
27
         * @param string $toWrap The text to wrap.
28
         *
29
         * @return string The wrapped text.
30
         */
31
        public static function paragraph( $toWrap ) {
×
32
                return '<p>' . $toWrap . '</p>';
×
33
        }
34

35
        /**
36
         * Wraps a piece of text in HTML p and strong tags.
37
         *
38
         * @param string $toWrap The text to wrap.
39
         *
40
         * @return string The wrapped text.
41
         */
42
        public static function strongParagraph( $toWrap ) {
×
43
                return self::paragraph( self::strong( $toWrap ) );
×
44
        }
45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc