• 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/settings-conditional.php
1
<?php
2

3
namespace Yoast\WP\SEO\Conditionals;
4

5
/**
6
 * Class Settings_Conditional.
7
 */
8
class Settings_Conditional implements Conditional {
9

10
        /**
11
         * Holds User_Can_Manage_Wpseo_Options_Conditional.
12
         *
13
         * @var User_Can_Manage_Wpseo_Options_Conditional
14
         */
15
        protected $user_can_manage_wpseo_options_conditional;
16

17
        /**
18
         * Constructs Settings_Conditional.
19
         *
20
         * @param User_Can_Manage_Wpseo_Options_Conditional $user_can_manage_wpseo_options_conditional The User_Can_Manage_Wpseo_Options_Conditional.
21
         */
22
        public function __construct(
×
23
                User_Can_Manage_Wpseo_Options_Conditional $user_can_manage_wpseo_options_conditional
24
        ) {
25
                $this->user_can_manage_wpseo_options_conditional = $user_can_manage_wpseo_options_conditional;
×
26
        }
27

28
        /**
29
         * Returns whether or not this conditional is met.
30
         *
31
         * @return bool Whether or not the conditional is met.
32
         */
33
        public function is_met() {
×
34
                if ( ! $this->user_can_manage_wpseo_options_conditional->is_met() ) {
×
35
                        return false;
×
36
                }
37

38
                return true;
×
39
        }
40
}
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