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

Yoast / wordpress-seo / 481faf637ba3a7c1e5f2bfef59b582ac39523de6

21 May 2025 09:11AM UTC coverage: 46.174%. First build
481faf637ba3a7c1e5f2bfef59b582ac39523de6

Pull #22291

github

web-flow
Merge pull request #22278 from Yoast/577-sanitize-and-deal-with-special-markdown-characters-before-writing-to-file

577 sanitize and deal with special markdown characters before writing to file
Pull Request #22291: Introduce the llms.txt feature

52 of 403 new or added lines in 30 files covered. (12.9%)

15586 of 33755 relevant lines covered (46.17%)

3.67 hits per line

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

0.0
/src/llms-txt/application/markdown-builders/title-builder.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
3
namespace Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders;
4

5
use Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Sections\Title;
6
use Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Title_Adapter;
7

8

9
/**
10
 * The builder of the title section.
11
 */
12
class Title_Builder {
13

14
        /**
15
         * The title adapter.
16
         *
17
         * @var Title_Adapter
18
         */
19
        protected $title_adapter;
20

21
        /**
22
         * The constructor.
23
         *
24
         * @param Title_Adapter $title_adapter The title adapter.
25
         */
NEW
26
        public function __construct(
×
27
                Title_Adapter $title_adapter
28
        ) {
NEW
29
                $this->title_adapter = $title_adapter;
×
30
        }
31

32
        /**
33
         * Builds the title section.
34
         *
35
         * @return Title The title section.
36
         */
NEW
37
        public function build_title(): Title {
×
NEW
38
                return $this->title_adapter->get_title();
×
39
        }
40
}
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

© 2025 Coveralls, Inc