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

Yoast / wordpress-seo / e9ac8ff9a236e0ff1ad9a5c711d3617ceff44c62

16 Apr 2024 11:54AM UTC coverage: 52.267% (+0.03%) from 52.242%
e9ac8ff9a236e0ff1ad9a5c711d3617ceff44c62

push

github

web-flow
Merge pull request #21267 from Yoast/21186-refactor-integration-enabledisables

Refactor integration enable disabled for script data.

7551 of 13895 branches covered (54.34%)

Branch coverage included in aggregate %.

57 of 85 new or added lines in 8 files covered. (67.06%)

779 existing lines in 1 file now uncovered.

28618 of 55305 relevant lines covered (51.75%)

40616.81 hits per line

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

0.0
/src/editors/application/integrations/Integration-Information-repository.php
1
<?php
2

3
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
4
namespace Yoast\WP\SEO\Editors\Application\Integrations;
5

6
use Yoast\WP\SEO\Editors\Domain\Integrations\Integration_Data_Provider_Interface;
7
use Yoast\WP\SEO\Editors\Framework\Analysis_Feature_Interface;
8

9
/**
10
 * The repository to get all enabled integrations.
11
 *
12
 * @makePublic
13
 */
14
class Integration_Information_Repository {
15

16
        /**
17
         * All plugin integrations.
18
         *
19
         * @var Analysis_Feature_Interface[] $plugin_integrations
20
         */
21
        private $plugin_integrations;
22

23
        /**
24
         * The constructor.
25
         *
26
         * @param Integration_Data_Provider_Interface ...$plugin_integrations All integrations.
27
         */
NEW
28
        public function __construct( Integration_Data_Provider_Interface ...$plugin_integrations ) {
×
NEW
29
                $this->plugin_integrations = $plugin_integrations;
×
30
        }
31

32
        /**
33
         * Returns the analysis list.
34
         *
35
         * @return array<array<string,bool>> The parsed list.
36
         */
NEW
37
        public function get_integration_information(): array {
×
NEW
38
                $array = [];
×
NEW
39
                foreach ( $this->plugin_integrations as $feature ) {
×
NEW
40
                        $array = \array_merge( $array, $feature->to_legacy_array() );
×
41
                }
NEW
42
                return $array;
×
43
        }
44
}
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