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

Yoast / wordpress-seo / 6987097851

25 Nov 2023 04:49AM UTC coverage: 49.206% (-0.1%) from 49.302%
6987097851

push

github

web-flow
Merge pull request #20878 from Yoast/JRF/ghactions-minor-tweak

GH Actions: update a few links in inline comments

15305 of 31104 relevant lines covered (49.21%)

4.03 hits per line

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

0.0
/src/conditionals/open-graph-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 Open Graph feature is enabled.
9
 */
10
class Open_Graph_Conditional implements Conditional {
11

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

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

28
        /**
29
         * Returns `true` when the Open Graph feature is enabled.
30
         *
31
         * @return bool `true` when the Open Graph feature is enabled.
32
         */
33
        public function is_met() {
×
34
                return $this->options->get( 'opengraph' ) === 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