• 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/description-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\Description;
6
use Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Description_Adapter;
7

8
/**
9
 * The builder of the description section.
10
 */
11
class Description_Builder {
12

13
        /**
14
         * The description adapter.
15
         *
16
         * @var Description_Adapter
17
         */
18
        protected $description_adapter;
19

20
        /**
21
         * Class constructor.
22
         *
23
         * @param Description_Adapter $description_adapter The description adapter.
24
         */
NEW
25
        public function __construct(
×
26
                Description_Adapter $description_adapter
27
        ) {
NEW
28
                $this->description_adapter = $description_adapter;
×
29
        }
30

31
        /**
32
         * Builds the description section.
33
         *
34
         * @return Description The description section.
35
         */
NEW
36
        public function build_description(): Description {
×
NEW
37
                return $this->description_adapter->get_description();
×
38
        }
39
}
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