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

AxeWP / wp-graphql-rank-math / 14947513062

10 May 2025 05:19PM UTC coverage: 86.429% (-2.0%) from 88.44%
14947513062

Pull #121

github

web-flow
Merge f69ff5d7f into 3bd3ede8c
Pull Request #121: dev: add support for lazy-loading `description`/`deprecationReason` config values

356 of 366 new or added lines in 65 files covered. (97.27%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.01 hits per line

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

96.43
/src/Type/WPObject/AdvancedRobotsMeta.php
1
<?php
2
/**
3
 * The Rank Math general settings GraphQL Object.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPObject
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\WPObject;
11

12
use WPGraphQL\RankMath\Type\Enum\ImagePreviewSizeEnum;
13
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
14

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

26
        /**
27
         * {@inheritDoc}
28
         */
29
        public static function get_description(): string {
UNCOV
30
                return __( 'The config for an advanced robots meta values.', 'wp-graphql-rank-math' );
×
31
        }
32

33
        /**
34
         * {@inheritDoc}
35
         */
36
        public static function get_fields(): array {
37
                return [
19✔
38
                        'hasSnippet'       => [
19✔
39
                                'type'        => 'Boolean',
19✔
40
                                'description' => static fn () => __( 'Whether to specify a maximum text length of a snippet of your page', 'wp-graphql-rank-math' ),
19✔
41
                        ],
19✔
42
                        'snippetLength'    => [
19✔
43
                                'type'        => 'Int',
19✔
44
                                'description' => static fn () => __( 'The maximum text length (in characters) of the snippet. -1 for no limit.', 'wp-graphql-rank-math' ),
19✔
45
                        ],
19✔
46
                        'hasVideoPreview'  => [
19✔
47
                                'type'        => 'Boolean',
19✔
48
                                'description' => static fn () => __( 'Whether to specify a maximum duration of an animated video preview.', 'wp-graphql-rank-math' ),
19✔
49
                        ],
19✔
50
                        'videoDuration'    => [
19✔
51
                                'type'        => 'Int',
19✔
52
                                'description' => static fn () => __( 'The maximum duration (seconds characters) of the snippet. -1 for no limit.', 'wp-graphql-rank-math' ),
19✔
53
                        ],
19✔
54
                        'hasImagePreview'  => [
19✔
55
                                'type'        => 'Boolean',
19✔
56
                                'description' => static fn () => __( 'Whether to specify a maximum size of image preview to be shown for images on the page.', 'wp-graphql-rank-math' ),
19✔
57
                        ],
19✔
58
                        'imagePreviewSize' => [
19✔
59
                                'type'        => ImagePreviewSizeEnum::get_type_name(),
19✔
60
                                'description' => static fn () => __( 'The maximum size of image preview to be shown for images.', 'wp-graphql-rank-math' ),
19✔
61
                        ],
19✔
62
                ];
19✔
63
        }
64
}
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