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

AxeWP / wp-graphql-headless-login / #78

04 Aug 2025 11:01AM UTC coverage: 82.325% (-0.2%) from 82.559%
#78

push

php-coveralls

web-flow
Merge af4d5c15d into ecab1fdba

2287 of 2778 relevant lines covered (82.33%)

24.01 hits per line

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

50.0
/access-functions.php
1
<?php
2
/**
3
 * This file contains access functions for various class methods.
4
 *
5
 * @package WPGraphQL/Login
6
 * @since 0.0.1
7
 */
8

9
declare( strict_types = 1 );
10

11
use WPGraphQL\Login\Utils\Utils;
12

13
if ( ! function_exists( 'graphql_login_get_setting' ) ) {
×
14
        /**
15
         * Get an option value from the plugin settings.
16
         *
17
         * @param string      $option_name   The key of the option to return.
18
         * @param mixed|false $default_value The default value the setting should return if no value is set.
19
         *
20
         * @uses \WPGraphQL\Login\Utils\Utils::get_setting()
21
         *
22
         * @return mixed
23
         * @since 0.0.1
24
         */
25
        function graphql_login_get_setting( string $option_name, $default_value = '' ) {
26
                return Utils::get_setting( $option_name, $default_value );
37✔
27
        }
28
}
29

30
if ( ! function_exists( 'graphql_login_get_provider_settings' ) ) {
×
31
        /**
32
         * Gets the provider settings from the database.
33
         *
34
         * @param string $slug The provider slug.
35
         *
36
         * @uses \WPGraphQL\Login\Utils\Utils::get_provider_settings()
37
         *
38
         * @return array<string,mixed>
39
         *
40
         * @since 0.0.1
41
         */
42
        function graphql_login_get_provider_settings( string $slug ): array {
43
                return Utils::get_provider_settings( $slug );
1✔
44
        }
45
}
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