Skip to content

Commit f341e65

Browse files
committed
Minor - flint fixes
1 parent 109371b commit f341e65

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

plugin/zoom/lib/ZoomPlugin.php

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,16 @@
2929
*/
3030
class ZoomPlugin extends Plugin
3131
{
32+
const RECORDING_TYPE_CLOUD = 'cloud';
33+
const RECORDING_TYPE_LOCAL = 'local';
34+
const RECORDING_TYPE_NONE = 'none';
3235
public $isCoursePlugin = true;
3336

3437
/**
3538
* @var JWTClient
3639
*/
3740
private $jwtClient;
3841

39-
const RECORDING_TYPE_CLOUD = 'cloud';
40-
const RECORDING_TYPE_LOCAL = 'local';
41-
const RECORDING_TYPE_NONE = 'none';
42-
4342
/**
4443
* ZoomPlugin constructor.
4544
* {@inheritdoc}
@@ -1124,6 +1123,24 @@ public function getToolbar($returnUrl = '')
11241123
return Display::toolbarAction('toolbar', [$actionsLeft]);
11251124
}
11261125

1126+
public function getRecordingSetting()
1127+
{
1128+
$recording = (string) $this->get('enableCloudRecording');
1129+
1130+
if (in_array($recording, [self::RECORDING_TYPE_LOCAL, self::RECORDING_TYPE_CLOUD], true)) {
1131+
return $recording;
1132+
}
1133+
1134+
return self::RECORDING_TYPE_NONE;
1135+
}
1136+
1137+
public function hasRecordingAvailable()
1138+
{
1139+
$recording = $this->getRecordingSetting();
1140+
1141+
return self::RECORDING_TYPE_NONE !== $recording;
1142+
}
1143+
11271144
/**
11281145
* Updates meeting registrants list. Adds the missing registrants and removes the extra.
11291146
*
@@ -1299,25 +1316,6 @@ private function createMeetingFromMeeting($meeting)
12991316
return $meeting;
13001317
}
13011318

1302-
public function getRecordingSetting()
1303-
{
1304-
$recording = (string) $this->get('enableCloudRecording');
1305-
1306-
if (in_array($recording, [self::RECORDING_TYPE_LOCAL, self::RECORDING_TYPE_CLOUD], true)) {
1307-
1308-
return $recording;
1309-
}
1310-
1311-
return self::RECORDING_TYPE_NONE;
1312-
}
1313-
1314-
public function hasRecordingAvailable()
1315-
{
1316-
$recording = $this->getRecordingSetting();
1317-
1318-
return self::RECORDING_TYPE_NONE !== $recording;
1319-
}
1320-
13211319
/**
13221320
* @throws Exception
13231321
*

0 commit comments

Comments
 (0)