Code Duplication    Length = 10-10 lines in 2 locations

lib/Payever/ExternalIntegration/ThirdParty/ThirdPartyApiClient.php 2 locations

@@ 129-138 (lines=10) @@
126
     * @param SubscriptionRequestEntity $requestEntity
127
     * @return string
128
     */
129
    protected function getConnectionUrl(SubscriptionRequestEntity $requestEntity)
130
    {
131
        $path = sprintf(
132
            static::SUB_URL_CONNECTION,
133
            $requestEntity->getBusinessUuid(),
134
            $requestEntity->getExternalId()
135
        );
136
137
        return $this->getBaseUrl() . $path;
138
    }
139
140
    /**
141
     * @param SubscriptionRequestEntity $requestEntity
@@ 144-153 (lines=10) @@
141
     * @param SubscriptionRequestEntity $requestEntity
142
     * @return string
143
     */
144
    protected function getIntegrationUrl(SubscriptionRequestEntity $requestEntity)
145
    {
146
        $path = sprintf(
147
            static::SUB_URL_INTEGRATION,
148
            $requestEntity->getBusinessUuid(),
149
            $requestEntity->getThirdPartyName()
150
        );
151
152
        return $this->getBaseUrl() . $path;
153
    }
154
155
    /**
156
     * @param SubscriptionRequestEntity $requestEntity