Compare 9975417 ... +0 ... dec0af5

Coverage Reach
Auth/SignIn/GuzzleHandler.php Auth/SignIn/FailedToSignIn.php Auth/IdTokenVerifier.php Auth/ApiClient.php Auth/ActionCodeSettings/ValidatedActionCodeSettings.php Auth/ActionCodeSettings/RawActionCodeSettings.php Auth/CreateActionLink/GuzzleApiClientHandler.php Auth/CreateActionLink/FailedToCreateActionLink.php Auth/CreateActionLink/ApiRequest.php Auth/UserRecord.php Auth/SendActionLink/FailedToSendActionLink.php Auth/SendActionLink/ApiRequest.php Auth/SendActionLink/GuzzleApiClientHandler.php Auth/SignInResult.php Auth/CustomTokenViaGoogleIam.php Auth/SignInWithIdpCredentials.php Auth/SendActionLink.php Auth/CreateActionLink.php Auth/UserMetaData.php Auth/UserInfo.php Auth/SignInWithEmailAndOobCode.php Auth/SignInWithEmailAndPassword.php Auth/SignInWithRefreshToken.php Auth/SignInWithCustomToken.php Auth/DisabledLegacyIdTokenVerifier.php Auth/DisabledLegacyCustomTokenGenerator.php Auth/SignInAnonymously.php Messaging/CloudMessage.php Messaging/MulticastSendReport.php Messaging/Notification.php Messaging/Http/Request/SendMessages.php Messaging/Http/Request/SendMessageToTokens.php Messaging/Http/Request/ValidateMessage.php Messaging/Http/Request/SendMessage.php Messaging/SendReport.php Messaging/RegistrationTokens.php Messaging/AppInstance.php Messaging/MessageTarget.php Messaging/MessageData.php Messaging/AppInstanceApiClient.php Messaging/Condition.php Messaging/TopicSubscription.php Messaging/Topic.php Messaging/FcmOptions.php Messaging/ApiClient.php Messaging/RegistrationToken.php Messaging/ApnsConfig.php Messaging/AndroidConfig.php Messaging/WebPushConfig.php Messaging/TopicSubscriptions.php Messaging/Messages.php Messaging/RawMessageFromArray.php DynamicLink/AnalyticsInfo/GooglePlayAnalytics.php DynamicLink/AnalyticsInfo/ITunesConnectAnalytics.php DynamicLink/CreateDynamicLink.php DynamicLink/IOSInfo.php DynamicLink/EventStatistics.php DynamicLink/CreateDynamicLink/FailedToCreateDynamicLink.php DynamicLink/CreateDynamicLink/GuzzleApiClientHandler.php DynamicLink/CreateDynamicLink/ApiRequest.php DynamicLink/ShortenLongDynamicLink/FailedToShortenLongDynamicLink.php DynamicLink/ShortenLongDynamicLink/GuzzleApiClientHandler.php DynamicLink/ShortenLongDynamicLink/ApiRequest.php DynamicLink/GetStatisticsForDynamicLink/GuzzleApiClientHandler.php DynamicLink/GetStatisticsForDynamicLink/FailedToGetStatisticsForDynamicLink.php DynamicLink/GetStatisticsForDynamicLink/ApiRequest.php DynamicLink/SocialMetaTagInfo.php DynamicLink/AndroidInfo.php DynamicLink/ShortenLongDynamicLink.php DynamicLink/AnalyticsInfo.php DynamicLink/NavigationInfo.php DynamicLink/GetStatisticsForDynamicLink.php DynamicLink/DynamicLinkStatistics.php RemoteConfig/Parameter.php RemoteConfig/Template.php RemoteConfig/FindVersions.php RemoteConfig/ApiClient.php RemoteConfig/Version.php RemoteConfig/Condition.php RemoteConfig/ConditionalValue.php RemoteConfig/VersionNumber.php RemoteConfig/DefaultValue.php RemoteConfig/User.php RemoteConfig/TagColor.php RemoteConfig/UpdateType.php RemoteConfig/UpdateOrigin.php Database/Reference.php Database/Query/Filter/EndAt.php Database/Query/Filter/EqualTo.php Database/Query/Filter/StartAt.php Database/Query/Filter/LimitToLast.php Database/Query/Filter/LimitToFirst.php Database/Query/Filter/Shallow.php Database/Query/Sorter/OrderByChild.php Database/Query/Sorter/OrderByKey.php Database/Query/Sorter/OrderByValue.php Database/Query.php Database/ApiClient.php Database/Reference/Validator.php Database/Snapshot.php Database/Transaction.php Database/RuleSet.php Factory.php Auth.php Exception/AuthApiExceptionConverter.php Exception/MessagingApiExceptionConverter.php Exception/Database/TransactionFailed.php Exception/Database/ReferenceHasNotBeenSnapshotted.php Exception/Database/UnsupportedQuery.php Exception/Messaging/ServerUnavailable.php Exception/Messaging/AuthenticationError.php Exception/Messaging/InvalidMessage.php Exception/Messaging/MessagingError.php Exception/Messaging/NotFound.php Exception/Messaging/ServerError.php Exception/RemoteConfigApiExceptionConverter.php Exception/DatabaseApiExceptionConverter.php Exception/Auth/RevokedIdToken.php Exception/RemoteConfig/VersionNotFound.php Http/ResponseWithSubResponses.php Http/HttpClientOptions.php Http/Middleware.php Http/RequestWithSubRequests.php Http/ErrorResponseParser.php Http/Requests.php Http/Responses.php Request/UpdateUser.php Request/CreateUser.php Messaging.php Value/Url.php Value/PhoneNumber.php Value/Email.php Value/ClearTextPassword.php Value/Uid.php Value/Provider.php DynamicLinks.php Util/DT.php Util/JSON.php Util/Deprecation.php ServiceAccount.php RemoteConfig.php Database.php DynamicLink.php Storage.php Project/ProjectId.php Firestore.php Util.php

Flags

Flags have been temporarily removed from this view while the flagging feature is refactored for better performance and user experience.

You can still use flags when viewing individual files. Flag-level thresholds will also remain on pull and merge requests in your repository provider.

More information can be found in our documentation.

Showing 2 of 3 files from the diff.

@@ -13,16 +13,16 @@
Loading
13 13
     *
14 14
     * Defaults to indefinitely.
15 15
     *
16 -
     * @var float
16 +
     * @var float|null
17 17
     */
18 -
    private $connectTimeout = \INF;
18 +
    private $connectTimeout;
19 19
20 20
    /**
21 21
     * The amount of seconds to wait while reading a streamed body.
22 22
     *
23 23
     * Defaults to the value of the default_socket_timeout PHP ini setting.
24 24
     *
25 -
     * @var float
25 +
     * @var float|null
26 26
     */
27 27
    private $readTimeout;
28 28
@@ -31,9 +31,9 @@
Loading
31 31
     *
32 32
     * Defaults to indefinitely.
33 33
     *
34 -
     * @var float
34 +
     * @var float|null
35 35
     */
36 -
    private $timeout = \INF;
36 +
    private $timeout;
37 37
38 38
    /**
39 39
     * The proxy that all requests should be passed through.
@@ -44,7 +44,6 @@
Loading
44 44
45 45
    private function __construct()
46 46
    {
47 -
        $this->readTimeout = ((float) \ini_get('default_socket_timeout')) ?: \INF;
48 47
    }
49 48
50 49
    public static function default(): self
@@ -57,7 +56,7 @@
Loading
57 56
     *
58 57
     * Defaults to indefinitely.
59 58
     */
60 -
    public function connectTimeout(): float
59 +
    public function connectTimeout(): ?float
61 60
    {
62 61
        return $this->connectTimeout;
63 62
    }
@@ -82,7 +81,7 @@
Loading
82 81
     *
83 82
     * Defaults to the value of the default_socket_timeout PHP ini setting.
84 83
     */
85 -
    public function readTimeout(): float
84 +
    public function readTimeout(): ?float
86 85
    {
87 86
        return $this->readTimeout;
88 87
    }
@@ -107,7 +106,7 @@
Loading
107 106
     *
108 107
     * Defaults to indefinitely.
109 108
     */
110 -
    public function timeout(): float
109 +
    public function timeout(): ?float
111 110
    {
112 111
        return $this->timeout;
113 112
    }

@@ -574,9 +574,17 @@
Loading
574 574
            $config[RequestOptions::PROXY] = $proxy;
575 575
        }
576 576
577 -
        $config[RequestOptions::CONNECT_TIMEOUT] = $this->httpClientOptions->connectTimeout();
578 -
        $config[RequestOptions::READ_TIMEOUT] = $this->httpClientOptions->readTimeout();
579 -
        $config[RequestOptions::TIMEOUT] = $this->httpClientOptions->timeout();
577 +
        if ($connectTimeout = $this->httpClientOptions->connectTimeout()) {
578 +
            $config[RequestOptions::CONNECT_TIMEOUT] = $connectTimeout;
579 +
        }
580 +
581 +
        if ($readTimeout = $this->httpClientOptions->readTimeout()) {
582 +
            $config[RequestOptions::READ_TIMEOUT] = $readTimeout;
583 +
        }
584 +
585 +
        if ($totalTimeout = $this->httpClientOptions->timeout()) {
586 +
            $config[RequestOptions::TIMEOUT] = $totalTimeout;
587 +
        }
580 588
581 589
        $handler = $config['handler'] ?? null;
582 590

Learn more Showing 4 files with coverage changes found.

Changes in src/Firebase/RemoteConfig/ApiClient.php
-1
Loading file...
Changes in src/Firebase/Database/ApiClient.php
-1
Loading file...
Changes in src/Firebase/Http/ResponseWithSubResponses.php
-1
Loading file...
Changes in src/Firebase/Database/RuleSet.php
-1
-2
Loading file...
Files Complexity Coverage
src/Firebase ø 0.06% 95.98%
Project Totals (147 files) 1405 95.98%
Loading