Code Duplication    Length = 8-9 lines in 2 locations

src/AlternativeData/SocialSentiment.php 1 location

@@ 52-60 (lines=9) @@
49
    /**
50
     * @return string
51
     */
52
    protected function getFullEndpoint(): string
53
    {
54
        $endpoint = str_replace('{symbol}', $this->symbol, self::ENDPOINT);
55
        $endpoint = str_replace('{type}', $this->type, $endpoint);
56
        $endpoint = str_replace('{date}', $this->date, $endpoint);
57
58
        return $endpoint;
59
60
    }
61
62
    /**
63
     * @return bool|void

src/DataApis/TimeSeries/Query.php 1 location

@@ 77-84 (lines=8) @@
74
    /**
75
     * @return string
76
     */
77
    protected function getFullEndpoint(): string
78
    {
79
        $endpoint = str_replace('{id}', $this->id, self::ENDPOINT);
80
        $endpoint = str_replace('{key}', $this->key, $endpoint);
81
        $endpoint = str_replace('{subKey}', $this->subKey, $endpoint);
82
83
        return $endpoint;
84
    }
85
86
    /**
87
     * @return bool|void