Code Duplication    Length = 13-13 lines in 2 locations

src/Bbb.php 2 locations

@@ 74-86 (lines=13) @@
71
     *
72
     * @return mixed
73
     */
74
    public function create($meeting)
75
    {
76
        if (!$meeting instanceof CreateMeetingParameters) {
77
            $meeting = $this->initCreateMeeting($meeting);
78
        }
79
80
        $this->response = $this->bbb->createMeeting($meeting);
81
        if ($this->response->failed()) {
82
            return $this->response->getMessage();
83
        } else {
84
            return collect(XmlToArray($this->response->getRawXml()));
85
        }
86
    }
87
88
    /**
89
     * @param $meeting
@@ 148-160 (lines=13) @@
145
     *
146
     * @return \Illuminate\Support\Collection
147
     */
148
    public function getMeetingInfo($meeting)
149
    {
150
        if (!$meeting instanceof GetMeetingInfoParameters) {
151
            $meeting = $this->initGetMeetingInfo($meeting);
152
        }
153
154
        $this->response = $this->bbb->getMeetingInfo($meeting);
155
        if ($this->response->success()) {
156
            return collect(XmlToArray($this->response->getRawXml()));
157
        }
158
159
        return collect([]);
160
    }
161
162
    /*
163
         * required fields