Code Duplication    Length = 13-13 lines in 2 locations

src/Bbb.php 2 locations

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