Code Duplication    Length = 9-9 lines in 3 locations

src/Services/ExpressCheckout.php 3 locations

@@ 251-259 (lines=9) @@
248
     *
249
     * @return array
250
     */
251
    public function cancelRecurringPaymentsProfile($id)
252
    {
253
        $this->post = collect([
254
            'PROFILEID' => $id,
255
            'ACTION'    => 'Cancel',
256
        ]);
257
258
        return $this->doPayPalRequest('ManageRecurringPaymentsProfileStatus');
259
    }
260
261
    /**
262
     * Function to suspend an active RecurringPaymentsProfile on PayPal.
@@ 268-276 (lines=9) @@
265
     *
266
     * @return array
267
     */
268
    public function suspendRecurringPaymentsProfile($id)
269
    {
270
        $this->post = collect([
271
            'PROFILEID' => $id,
272
            'ACTION'    => 'Suspend',
273
        ]);
274
275
        return $this->doPayPalRequest('ManageRecurringPaymentsProfileStatus');
276
    }
277
278
    /**
279
     * Function to reactivate a suspended RecurringPaymentsProfile on PayPal.
@@ 285-293 (lines=9) @@
282
     *
283
     * @return array
284
     */
285
    public function reactivateRecurringPaymentsProfile($id)
286
    {
287
        $this->post = collect([
288
            'PROFILEID' => $id,
289
            'ACTION'    => 'Reactivate',
290
        ]);
291
292
        return $this->doPayPalRequest('ManageRecurringPaymentsProfileStatus');
293
    }
294
}
295