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

AxeWP / wp-graphql-rank-math / 15507492505

07 Jun 2025 11:44AM UTC coverage: 86.429% (-2.0%) from 88.44%
15507492505

push

github

web-flow
dev: add support for lazy-loading `description`/`deprecationReason` config values (#121)

* chore: update strauss and deps

* dev: use callable descriptions/deprecations

* fix: dont prefix `NodeWithRankMathSeo`

* chore: fix backcompat on connections

* chore: update dep

* chore: update deps

* tests: ensure schema can build

* chore: update and cleanup

* fix: regenerate autoloader

357 of 367 new or added lines in 66 files covered. (97.28%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.49 hits per line

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

90.0
/src/Type/Enum/OpenGraphLocaleEnum.php
1
<?php
2
/**
3
 * The Snippet type enum.
4
 *
5
 * @package WPGraphQL\RankMath\Type\Enum
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\Enum;
11

12
use RankMath\OpenGraph\Facebook_Locale;
13
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\EnumType;
14
use WPGraphQL\Type\WPEnumType;
15

16
/**
17
 * Class - OpenGraphLocaleEnum
18
 */
19
class OpenGraphLocaleEnum extends EnumType {
20
        /**
21
         * {@inheritDoc}
22
         */
23
        protected static function type_name(): string {
24
                return 'OpenGraphLocaleEnum';
20✔
25
        }
26

27
        /**
28
         * {@inheritDoc}
29
         */
30
        public static function get_description(): string {
UNCOV
31
                return __( 'The Facebook OpenGraph Locale.', 'wp-graphql-rank-math' );
×
32
        }
33

34
        /**
35
         * {@inheritDoc}
36
         */
37
        public static function get_values(): array {
38
                $types = Facebook_Locale::FACEBOOK_LOCALES;
20✔
39

40
                $values = [];
20✔
41

42
                foreach ( $types as $locale ) {
20✔
43
                        $values[ WPEnumType::get_safe_name( $locale ) ] = [
20✔
44
                                // translators: %s is the locale.
45
                                'description' => static fn () => sprintf( __( '%s.', 'wp-graphql-rank-math' ), $locale ),
20✔
46
                                'value'       => $locale,
20✔
47
                        ];
20✔
48
                }
49

50
                return $values;
20✔
51
        }
52
}
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