Code Duplication    Length = 16-16 lines in 2 locations

src/Bbb.php 2 locations

@@ 107-122 (lines=16) @@
104
     *
105
     * @return bool
106
     */
107
    public function isMeetingRunning($meeting)
108
    {
109
        if (!$meeting instanceof IsMeetingRunningParameters) {
110
            $meeting = $this->initIsMeetingRunning($meeting);
111
        }
112
113
        $this->response = $this->bbb->isMeetingRunning($meeting);
114
        if ($this->response->success()) {
115
            $response = XmlToArray($this->response->getRawXml());
116
            if (isset($response['running']) && $response['running'] == "true") {
117
                return true;
118
            }
119
        }
120
121
        return false;
122
    }
123
124
    /**
125
     *  Join meeting
@@ 251-266 (lines=16) @@
248
     *
249
     * @return bool
250
     */
251
    public function publishRecordings($recording)
252
    {
253
        if (!$recording instanceof PublishRecordingsParameters) {
254
            $recording = $this->initPublishRecordings($recording);
255
        }
256
257
        $this->response = $this->bbb->publishRecordings($recording);
258
        if ($this->response->success()) {
259
            $response = XmlToArray($this->response->getRawXml());
260
            if (isset($response['published']) && $response['published'] == "true") {
261
                return true;
262
            }
263
        }
264
265
        return false;
266
    }
267
268
    /**
269
     * @param $recording