Code Duplication    Length = 8-8 lines in 3 locations

src/Resource/Escrow.php 1 location

@@ 95-102 (lines=8) @@
92
     *
93
     * @return Payment
94
     */
95
    public function release()
96
    {
97
        $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::PATH, $this->getId(), 'release');
98
99
        $response = $this->httpRequest($path, Requests::POST, []);
100
101
        return $this->populate($response);
102
    }
103
104
    /**
105
     * Mount escrow structure.

src/Resource/Transfers.php 2 locations

@@ 207-214 (lines=8) @@
204
     *
205
     * @return Transfers
206
     */
207
    public function execute()
208
    {
209
        $path = sprintf('/%s/%s', MoipResource::VERSION, self::PATH);
210
211
        $response = $this->httpRequest($path, Requests::POST, $this);
212
213
        return $this->populate($response);
214
    }
215
216
    /**
217
     * Revert Tranfers.
@@ 223-230 (lines=8) @@
220
     *
221
     * @return Transfers
222
     */
223
    public function revert($id)
224
    {
225
        $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::PATH, $id, 'reverse');
226
227
        $response = $this->httpRequest($path, Requests::POST, $this);
228
229
        return $this->populate($response);
230
    }
231
232
    /**
233
     * Get a Transfer.