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

Yoast / wordpress-seo / 8218b111533b92ec47f94130a94bcd0102263a45

01 Dec 2025 09:48AM UTC coverage: 53.092%. First build
8218b111533b92ec47f94130a94bcd0102263a45

push

github

web-flow
Merge pull request #22759 from Yoast/feature/task-list

Feature/task list

8697 of 16050 branches covered (54.19%)

Branch coverage included in aggregate %.

98 of 605 new or added lines in 51 files covered. (16.2%)

32413 of 61381 relevant lines covered (52.81%)

46976.02 hits per line

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

0.0
/src/task-list/application/configuration/task-list-configuration.php
1
<?php
2

3

4
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
5
namespace Yoast\WP\SEO\Task_List\Application\Configuration;
6

7
use Yoast\WP\SEO\Helpers\Options_Helper;
8
use Yoast\WP\SEO\Task_List\Application\Endpoints\Endpoints_Repository;
9

10
/**
11
 * Responsible for the task list configuration.
12
 */
13
class Task_List_Configuration {
14

15
        /**
16
         * The options helper.
17
         *
18
         * @var Options_Helper
19
         */
20
        private $options_helper;
21

22
        /**
23
         * The endpoints repository.
24
         *
25
         * @var Endpoints_Repository
26
         */
27
        private $endpoints_repository;
28

29
        /**
30
         * The constructor.
31
         *
32
         * @param Options_Helper       $options_helper       The options helper.
33
         * @param Endpoints_Repository $endpoints_repository The endpoints repository.
34
         */
NEW
35
        public function __construct(
×
36
                Options_Helper $options_helper,
37
                Endpoints_Repository $endpoints_repository
38
        ) {
NEW
39
                $this->options_helper       = $options_helper;
×
NEW
40
                $this->endpoints_repository = $endpoints_repository;
×
41
        }
42

43
        /**
44
         * Returns a configuration
45
         *
46
         * @return array<string, array<string>|array<string, string|array<string, array<string, int>>>>
47
         */
NEW
48
        public function get_configuration(): array {
×
NEW
49
                $configuration = [
×
NEW
50
                        'enabled'   => $this->options_helper->get( 'enable_task_list', true ),
×
NEW
51
                        'endpoints' => $this->endpoints_repository->get_all_endpoints()->to_array(),
×
NEW
52
                ];
×
53

NEW
54
                return $configuration;
×
55
        }
56
}
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