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

Yoast / wordpress-seo / 6042dacbb227e0d58595c018c12b429beaf2ad0d

01 Dec 2025 12:58PM UTC coverage: 52.558% (-0.5%) from 53.077%
6042dacbb227e0d58595c018c12b429beaf2ad0d

Pull #22772

github

web-flow
Merge 918d403de into 6a8c9acb5
Pull Request #22772: Add schema feature toggle and settings page

8318 of 15624 branches covered (53.24%)

Branch coverage included in aggregate %.

1 of 9 new or added lines in 3 files covered. (11.11%)

211 existing lines in 10 files now uncovered.

31823 of 60750 relevant lines covered (52.38%)

47463.49 hits per line

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

0.0
/src/conditionals/schema-disabled-conditional.php
1
<?php
2

3
namespace Yoast\WP\SEO\Conditionals;
4

5
use Yoast\WP\SEO\Helpers\Options_Helper;
6

7
/**
8
 * Conditional that is only met when the schema is disabled.
9
 */
10
class Schema_Disabled_Conditional implements Conditional {
11

12
        /**
13
         * The options helper.
14
         *
15
         * @var Options_Helper
16
         */
17
        private $options;
18

19
        /**
20
         * Schema_Disabled_Conditional constructor.
21
         *
22
         * @param Options_Helper $options The options helper.
23
         */
NEW
24
        public function __construct( Options_Helper $options ) {
×
NEW
25
                $this->options = $options;
×
26
        }
27

28
        /**
29
         * Returns `true` whether the schema is disabled.
30
         *
31
         * @return bool `true` when the schema is disabled.
32
         */
NEW
33
        public function is_met() {
×
NEW
34
                return ! $this->options->get( 'enable_schema', true );
×
35
        }
36
}
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