Code Duplication    Length = 7-7 lines in 2 locations

src/Helpers/Requests/PinHelper.php 2 locations

@@ 16-22 (lines=7) @@
13
     * @param string $text
14
     * @return array
15
     */
16
    public static function createCommentRequest($pinId, $text)
17
    {
18
        $dataJson = self::createPinIdRequest($pinId);
19
        $dataJson["options"]["text"] = $text;
20
21
        return self::createPinRequestData($dataJson);
22
    }
23
24
    /**
25
     * Create Pinterest API request form commenting pin
@@ 31-37 (lines=7) @@
28
     * @param int $commentId
29
     * @return array
30
     */
31
    public static function createCommentDeleteRequest($pinId, $commentId)
32
    {
33
        $dataJson = self::createPinIdRequest($pinId);
34
        $dataJson["options"]["comment_id"] = $commentId;
35
36
        return self::createPinRequestData($dataJson);
37
    }
38
39
    /**
40
     * Creates Pinterest API request for Pin creation