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

Yoast / wordpress-seo / 40a2f49a59a5b791028ef8b2cbaee11675d8005a

17 Feb 2026 11:34AM UTC coverage: 53.061% (+0.08%) from 52.986%
40a2f49a59a5b791028ef8b2cbaee11675d8005a

Pull #22972

github

web-flow
Merge pull request #22966 from Yoast/1063-task-list-deal-with-the-remaining-todos-of-phase-2

Complete @TODOs
Pull Request #22972: Add tasks about the SEO and readability of recent posts

8482 of 15955 branches covered (53.16%)

Branch coverage included in aggregate %.

258 of 399 new or added lines in 30 files covered. (64.66%)

14 existing lines in 3 files now uncovered.

32694 of 61646 relevant lines covered (53.04%)

48531.75 hits per line

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

0.0
/src/task-list/domain/components/abstract-task-analyzer.php
1
<?php
2

3
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
4
namespace Yoast\WP\SEO\Task_List\Domain\Components;
5

6
/**
7
 * Abstract class for a task analyzer.
8
 */
9
abstract class Abstract_Task_Analyzer implements Task_Analyzer_Interface {
10

11
        /**
12
         * The title of the analyzer (e.g. "SEO analysis").
13
         *
14
         * @var string
15
         */
16
        protected $title;
17

18
        /**
19
         * The result of the analyzer.
20
         *
21
         * @var string
22
         */
23
        protected $result;
24

25
        /**
26
         * The human-readable label for the result (e.g. "Needs improvement").
27
         *
28
         * @var string
29
         */
30
        protected $result_label;
31

32
        /**
33
         * The description text explaining the result.
34
         *
35
         * @var string
36
         */
37
        protected $result_description;
38

39
        /**
40
         * Returns an array representation of the analyzer data.
41
         *
42
         * @return array<string, string> Returns in an array format.
43
         */
NEW
44
        public function to_array(): array {
×
NEW
45
                return [
×
NEW
46
                        'type'              => $this->get_type(),
×
NEW
47
                        'title'             => $this->title,
×
NEW
48
                        'result'            => $this->result,
×
NEW
49
                        'resultLabel'       => $this->result_label,
×
NEW
50
                        'resultDescription' => $this->result_description,
×
NEW
51
                ];
×
52
        }
53
}
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