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

wp-graphql / wp-graphql-woocommerce / 5603142731

pending completion
5603142731

push

github

web-flow
fix: remove trailing commas from function calls (#768)

* fix!: update deps to required versions

* fix: trailing commas not allowed in PHP 7.2

5 of 5 new or added lines in 5 files covered. (100.0%)

10258 of 12448 relevant lines covered (82.41%)

54.0 hits per line

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

0.0
/includes/class-admin.php
1
<?php
2
/**
3
 * Initializes a WooGraphQL Pro admin settings.
4
 *
5
 * @package WPGraphQL\WooCommerce\Pro
6
 * @since 1.0.0
7
 */
8

9
namespace WPGraphQL\WooCommerce;
10

11
use WPGraphQL\Admin\Settings\Settings;
12
use WPGraphQL\WooCommerce\Admin\General;
13

14
/**
15
 * Class Admin
16
 */
17
class Admin {
18

19
        /**
20
         * Admin constructor
21
         */
22
        public function __construct() {
23
                add_action( 'graphql_register_settings', [ $this, 'register_settings' ] );
×
24
        }
25

26
        /**
27
         * Registers the WooGraphQL Settings tab.
28
         *
29
         * @param Settings $manager  Settings Manager.
30
         * @return void
31
         */
32
        public function register_settings( Settings $manager ) {
33
                $manager->settings_api->register_section(
×
34
                        'woographql_settings',
×
35
                        [ 'title' => __( 'WooGraphQL', 'wp-graphql-woocommerce' ) ]
×
36
                );
×
37

38
                $manager->settings_api->register_fields(
×
39
                        'woographql_settings',
×
40
                        General::get_fields()
×
41
                );
×
42
        }
43
}
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