Code Duplication    Length = 8-8 lines in 4 locations

src/Staff/Staff.php 1 location

@@ 31-38 (lines=8) @@
28
     *
29
     * @return \EntWeChat\Support\Collection
30
     */
31
    public function lists($type = null)
32
    {
33
        $params = [
34
            'type' => $type,
35
        ];
36
37
        return $this->parseJSON('get', [self::API_LISTS, $params]);
38
    }
39
40
    /**
41
     * Get message builder.

src/User/Department.php 2 locations

@@ 44-51 (lines=8) @@
41
     *
42
     * @return array
43
     */
44
    public function lists($partyId = null)
45
    {
46
        $params = [
47
            'id' => $partyId,
48
        ];
49
50
        return $this->parseJSON('get', [self::API_GET, $params]);
51
    }
52
53
    /**
54
     * Update a Department.
@@ 75-82 (lines=8) @@
72
     *
73
     * @return bool
74
     */
75
    public function delete($partyId)
76
    {
77
        $params = [
78
            'id' => $partyId,
79
        ];
80
81
        return $this->parseJSON('json', [self::API_DELETE, $params]);
82
    }
83
}
84

src/Auth/App.php 1 location

@@ 80-87 (lines=8) @@
77
     *
78
     * @return \EntWeChat\Support\Collection
79
     */
80
    public function detail($user_ticket)
81
    {
82
        $params = [
83
            'user_ticket' => $user_ticket,
84
        ];
85
86
        return $this->parseJSON('post', [self::API_GET_USER_DETAIL, $params]);
87
    }
88
}
89