Skip to content

Commit c80d1d6

Browse files
committed
fix unit tests & format code
1 parent 226a638 commit c80d1d6

25 files changed

+183
-146
lines changed

src/Parameters/CreateMeetingParameters.php

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ class CreateMeetingParameters extends MetaParameters
3030
/**
3131
* @var string
3232
*/
33-
private ?string $meetingId=null;
33+
private ?string $meetingId = null;
3434

3535
/**
3636
* @var string
3737
*/
38-
private ?string $meetingName =null;
38+
private ?string $meetingName = null;
3939

4040
/**
4141
* @var string
@@ -343,7 +343,7 @@ class CreateMeetingParameters extends MetaParameters
343343
* @param mixed $meetingId
344344
* @param mixed $meetingName
345345
*/
346-
public function __construct($meetingId =null , $meetingName=null)
346+
public function __construct($meetingId = null, $meetingName = null)
347347
{
348348
$this->meetingId = $meetingId;
349349
$this->meetingName = $meetingName;
@@ -1505,8 +1505,6 @@ public function setPresentationUploadExternalDescription(string $presentationUpl
15051505
*/
15061506
public function getHTTPQuery()
15071507
{
1508-
1509-
15101508
$queries = [
15111509
'name' => $this->meetingName,
15121510
'meetingID' => $this->meetingId,
@@ -1526,51 +1524,51 @@ public function getHTTPQuery()
15261524
'webcamsOnlyForModerator' => !is_null($this->webcamsOnlyForModerator) ? ($this->webcamsOnlyForModerator ? 'true' : 'false') : $this->webcamsOnlyForModerator,
15271525
'logo' => $this->logo,
15281526
'copyright' => $this->copyright,
1529-
'muteOnStart' => !is_null($this->muteOnStart) ? ($this->muteOnStart? 'true' : 'false'): $this->muteOnStart,
1527+
'muteOnStart' => !is_null($this->muteOnStart) ? ($this->muteOnStart ? 'true' : 'false') : $this->muteOnStart,
15301528
'guestPolicy' => $this->guestPolicy,
1531-
'lockSettingsDisableCam' => !is_null($this->lockSettingsDisableCam) ?($this->lockSettingsDisableCam?'true' : 'false') :$this->lockSettingsDisableCam,
1532-
'lockSettingsDisableMic' => !is_null($this->lockSettingsDisableMic) ?($this->lockSettingsDisableMic? 'true' : 'false'):$this->lockSettingsDisableMic,
1533-
'lockSettingsDisablePrivateChat' => !is_null($this->lockSettingsDisablePrivateChat) ? ($this->lockSettingsDisablePrivateChat ? 'true' : 'false'):$this->lockSettingsDisablePrivateChat,
1534-
'lockSettingsDisablePublicChat' => !is_null($this->lockSettingsDisablePublicChat) ? ($this->lockSettingsDisablePublicChat ?'true' : 'false'):$this->lockSettingsDisablePublicChat,
1535-
'lockSettingsDisableNote' => !is_null($this->lockSettingsDisableNote )? ($this->lockSettingsDisableNote ? 'true' : 'false'):$this->lockSettingsDisableNote,
1536-
'lockSettingsHideUserList' => !is_null($this->lockSettingsHideUserList)?($this->lockSettingsHideUserList ? 'true' : 'false'):$this->lockSettingsHideUserList,
1537-
'lockSettingsLockedLayout' => !is_null($this->lockSettingsLockedLayout)?($this->lockSettingsLockedLayout ? 'true' : 'false'):$this->lockSettingsLockedLayout,
1538-
'lockSettingsLockOnJoin' => !is_null($this->lockSettingsLockOnJoin )?($this->lockSettingsLockOnJoin ? 'true' : 'false'):$this->lockSettingsLockOnJoin ,
1539-
'lockSettingsLockOnJoinConfigurable' => !is_null($this->lockSettingsLockOnJoinConfigurable)?($this->lockSettingsLockOnJoinConfigurable ? 'true' : 'false'):$this->lockSettingsLockOnJoinConfigurable,
1540-
'lockSettingsHideViewersCursor' => !is_null($this->lockSettingsHideViewersCursor)?($this->lockSettingsHideViewersCursor ? 'true' : 'false'):$this->lockSettingsHideViewersCursor,
1541-
'allowModsToUnmuteUsers' => !is_null($this->allowModsToUnmuteUsers)?($this->allowModsToUnmuteUsers ? 'true' : 'false'):$this->allowModsToUnmuteUsers,
1542-
'allowModsToEjectCameras' => !is_null($this->allowModsToEjectCameras)?($this->allowModsToEjectCameras ? 'true' : 'false'):$this->allowModsToEjectCameras,
1529+
'lockSettingsDisableCam' => !is_null($this->lockSettingsDisableCam) ? ($this->lockSettingsDisableCam ? 'true' : 'false') : $this->lockSettingsDisableCam,
1530+
'lockSettingsDisableMic' => !is_null($this->lockSettingsDisableMic) ? ($this->lockSettingsDisableMic ? 'true' : 'false') : $this->lockSettingsDisableMic,
1531+
'lockSettingsDisablePrivateChat' => !is_null($this->lockSettingsDisablePrivateChat) ? ($this->lockSettingsDisablePrivateChat ? 'true' : 'false') : $this->lockSettingsDisablePrivateChat,
1532+
'lockSettingsDisablePublicChat' => !is_null($this->lockSettingsDisablePublicChat) ? ($this->lockSettingsDisablePublicChat ? 'true' : 'false') : $this->lockSettingsDisablePublicChat,
1533+
'lockSettingsDisableNote' => !is_null($this->lockSettingsDisableNote) ? ($this->lockSettingsDisableNote ? 'true' : 'false') : $this->lockSettingsDisableNote,
1534+
'lockSettingsHideUserList' => !is_null($this->lockSettingsHideUserList) ? ($this->lockSettingsHideUserList ? 'true' : 'false') : $this->lockSettingsHideUserList,
1535+
'lockSettingsLockedLayout' => !is_null($this->lockSettingsLockedLayout) ? ($this->lockSettingsLockedLayout ? 'true' : 'false') : $this->lockSettingsLockedLayout,
1536+
'lockSettingsLockOnJoin' => !is_null($this->lockSettingsLockOnJoin) ? ($this->lockSettingsLockOnJoin ? 'true' : 'false') : $this->lockSettingsLockOnJoin,
1537+
'lockSettingsLockOnJoinConfigurable' => !is_null($this->lockSettingsLockOnJoinConfigurable) ? ($this->lockSettingsLockOnJoinConfigurable ? 'true' : 'false') : $this->lockSettingsLockOnJoinConfigurable,
1538+
'lockSettingsHideViewersCursor' => !is_null($this->lockSettingsHideViewersCursor) ? ($this->lockSettingsHideViewersCursor ? 'true' : 'false') : $this->lockSettingsHideViewersCursor,
1539+
'allowModsToUnmuteUsers' => !is_null($this->allowModsToUnmuteUsers) ? ($this->allowModsToUnmuteUsers ? 'true' : 'false') : $this->allowModsToUnmuteUsers,
1540+
'allowModsToEjectCameras' => !is_null($this->allowModsToEjectCameras) ? ($this->allowModsToEjectCameras ? 'true' : 'false') : $this->allowModsToEjectCameras,
15431541
'bannerText' => trim($this->bannerText),
15441542
'bannerColor' => trim($this->bannerColor),
1545-
'learningDashboardEnabled' => !is_null($this->learningDashboardEnabled)?($this->learningDashboardEnabled ? 'true' : 'false'):$this->learningDashboardEnabled,
1546-
'virtualBackgroundsDisabled' => !is_null($this->virtualBackgroundsDisabled)?($this->virtualBackgroundsDisabled ? 'true' : 'false'):$this->virtualBackgroundsDisabled,
1543+
'learningDashboardEnabled' => !is_null($this->learningDashboardEnabled) ? ($this->learningDashboardEnabled ? 'true' : 'false') : $this->learningDashboardEnabled,
1544+
'virtualBackgroundsDisabled' => !is_null($this->virtualBackgroundsDisabled) ? ($this->virtualBackgroundsDisabled ? 'true' : 'false') : $this->virtualBackgroundsDisabled,
15471545
'endWhenNoModeratorDelayInMinutes' => $this->endWhenNoModeratorDelayInMinutes,
1548-
'allowRequestsWithoutSession' => !is_null($this->allowRequestsWithoutSession)?($this->allowRequestsWithoutSession ? 'true' : 'false'):$this->allowRequestsWithoutSession,
1546+
'allowRequestsWithoutSession' => !is_null($this->allowRequestsWithoutSession) ? ($this->allowRequestsWithoutSession ? 'true' : 'false') : $this->allowRequestsWithoutSession,
15491547
'meetingEndedURL' => $this->meetingEndedURL,
1550-
'breakoutRoomsEnabled' => !is_null($this->breakoutRoomsEnabled)?($this->breakoutRoomsEnabled ? 'true' : 'false'):$this->breakoutRoomsEnabled,
1551-
'breakoutRoomsRecord' => !is_null($this->breakoutRoomsRecord)?($this->breakoutRoomsRecord ? 'true' : 'false'):$this->breakoutRoomsRecord,
1552-
'breakoutRoomsPrivateChatEnabled' => !is_null($this->breakoutRoomsPrivateChatEnabled)?($this->breakoutRoomsPrivateChatEnabled ? 'true' : 'false'):$this->breakoutRoomsPrivateChatEnabled,
1553-
'endWhenNoModerator' => !is_null($this->endWhenNoModerator)?($this->endWhenNoModerator ? 'true' : 'false'):$this->endWhenNoModerator,
1554-
'meetingKeepEvents' => !is_null($this->meetingKeepEvents )?($this->meetingKeepEvents ? 'true' : 'false'):$this->meetingKeepEvents ,
1548+
'breakoutRoomsEnabled' => !is_null($this->breakoutRoomsEnabled) ? ($this->breakoutRoomsEnabled ? 'true' : 'false') : $this->breakoutRoomsEnabled,
1549+
'breakoutRoomsRecord' => !is_null($this->breakoutRoomsRecord) ? ($this->breakoutRoomsRecord ? 'true' : 'false') : $this->breakoutRoomsRecord,
1550+
'breakoutRoomsPrivateChatEnabled' => !is_null($this->breakoutRoomsPrivateChatEnabled) ? ($this->breakoutRoomsPrivateChatEnabled ? 'true' : 'false') : $this->breakoutRoomsPrivateChatEnabled,
1551+
'endWhenNoModerator' => !is_null($this->endWhenNoModerator) ? ($this->endWhenNoModerator ? 'true' : 'false') : $this->endWhenNoModerator,
1552+
'meetingKeepEvents' => !is_null($this->meetingKeepEvents) ? ($this->meetingKeepEvents ? 'true' : 'false') : $this->meetingKeepEvents,
15551553
'meetingLayout' => $this->meetingLayout,
15561554
'meetingCameraCap' => $this->meetingCameraCap,
15571555
'userCameraCap' => $this->userCameraCap,
15581556
'meetingExpireIfNoUserJoinedInMinutes' => $this->meetingExpireIfNoUserJoinedInMinutes,
15591557
'meetingExpireWhenLastUserLeftInMinutes' => $this->meetingExpireWhenLastUserLeftInMinutes,
15601558
'preUploadedPresentationOverrideDefault' => $this->preUploadedPresentationOverrideDefault,
15611559
'disabledFeatures' => join(',', $this->disabledFeatures),
1562-
'notifyRecordingIsOn' => is_null($this->notifyRecordingIsOn)?($this->notifyRecordingIsOn ? 'true' : 'false'):$this->notifyRecordingIsOn,
1560+
'notifyRecordingIsOn' => is_null($this->notifyRecordingIsOn) ? ($this->notifyRecordingIsOn ? 'true' : 'false') : $this->notifyRecordingIsOn,
15631561
'presentationUploadExternalUrl' => $this->presentationUploadExternalUrl,
15641562
'presentationUploadExternalDescription' => $this->presentationUploadExternalDescription,
15651563
];
15661564

15671565
// Add breakout rooms parameters only if the meeting is a breakout room
15681566
if ($this->isBreakout()) {
15691567
$queries = array_merge($queries, [
1570-
'isBreakout' => !is_null($this->isBreakout)?($this->isBreakout ? 'true' : 'false'):$this->isBreakout,
1568+
'isBreakout' => !is_null($this->isBreakout) ? ($this->isBreakout ? 'true' : 'false') : $this->isBreakout,
15711569
'parentMeetingID' => $this->parentMeetingId,
15721570
'sequence' => $this->sequence,
1573-
'freeJoin' => !is_null($this->freeJoin)?($this->freeJoin ? 'true' : 'false'):$this->freeJoin,
1571+
'freeJoin' => !is_null($this->freeJoin) ? ($this->freeJoin ? 'true' : 'false') : $this->freeJoin,
15741572
]);
15751573
} else {
15761574
$queries = array_merge($queries, [

src/Parameters/DeleteRecordingsParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class DeleteRecordingsParameters extends BaseParameters
2828
/**
2929
* @var string
3030
*/
31-
private ?string $recordingId =null;
31+
private ?string $recordingId = null;
3232

3333
/**
3434
* DeleteRecordingsParameters constructor.
3535
*
3636
* @param mixed $recordingId
3737
*/
38-
public function __construct($recordingId=null)
38+
public function __construct($recordingId = null)
3939
{
4040
$this->recordingId = $recordingId;
4141
}

src/Parameters/EndMeetingParameters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ class EndMeetingParameters extends BaseParameters
2828
/**
2929
* @var string
3030
*/
31-
private ?string $meetingId =null;
31+
private ?string $meetingId = null;
3232

3333
/**
3434
* @deprecated
3535
*
3636
* @var string
3737
*/
38-
3938
private ?string $password = null;
39+
4040
/**
4141
* EndMeetingParameters constructor.
4242
*
4343
* @param string $meetingId
4444
* @param string $password
4545
*/
46-
public function __construct($meetingId=null, $password = null)
46+
public function __construct($meetingId = null, $password = null)
4747
{
4848
$this->password = $password;
4949
$this->meetingId = $meetingId;

src/Parameters/GetMeetingInfoParameters.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,24 @@ class GetMeetingInfoParameters extends BaseParameters
2828
/**
2929
* @var string
3030
*/
31-
private ?string $meetingId =null;
31+
private ?string $meetingId = null;
3232

3333
/**
3434
* @var int
3535
*/
36-
37-
private ?int $offset = null ;
36+
private ?int $offset = null;
3837

3938
/**
4039
* @var int
4140
*/
42-
private ?int $limit =null;
41+
private ?int $limit = null;
4342

4443
/**
4544
* GetMeetingInfoParameters constructor.
4645
*
4746
* @param mixed $meetingId
4847
*/
49-
public function __construct($meetingId=null)
48+
public function __construct($meetingId = null)
5049
{
5150
$this->meetingId = $meetingId;
5251
}
@@ -71,7 +70,7 @@ public function setMeetingId($meetingId)
7170
return $this;
7271
}
7372

74-
public function getOffset(): int
73+
public function getOffset()
7574
{
7675
return $this->offset;
7776
}
@@ -83,7 +82,7 @@ public function setOffset(int $offset): GetMeetingInfoParameters
8382
return $this;
8483
}
8584

86-
public function getLimit(): int
85+
public function getLimit()
8786
{
8887
return $this->limit;
8988
}

src/Parameters/GetRecordingTextTracksParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class GetRecordingTextTracksParameters extends MetaParameters
2828
/**
2929
* @var string
3030
*/
31-
private ?string $recordId =null;
31+
private ?string $recordId = null;
3232

3333
/**
3434
* GetRecordingTextTracksParameters constructor.
3535
*
3636
* @param mixed $recordId
3737
*/
38-
public function __construct($recordId=null)
38+
public function __construct($recordId = null)
3939
{
4040
$this->recordId = $recordId;
4141
}

src/Parameters/GetRecordingsParameters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class GetRecordingsParameters extends MetaParameters
2828
/**
2929
* @var string
3030
*/
31-
private ?string $meetingId =null;
31+
private ?string $meetingId = null;
3232

3333
/**
3434
* @var string
3535
*/
36-
private ?string $recordId =null;
36+
private ?string $recordId = null;
3737

3838
/**
3939
* @var string
4040
*/
41-
private ?string $state =null;
41+
private ?string $state = null;
4242

4343
/**
4444
* @return string

src/Parameters/HooksCreateParameters.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ class HooksCreateParameters extends BaseParameters
2525
/**
2626
* @var string
2727
*/
28-
private ?string $callbackUrl =null;
28+
private ?string $callbackUrl = null;
2929

3030
/**
3131
* @var string
3232
*/
33-
private ?string $meetingId =null;
33+
private ?string $meetingId = null;
3434

3535
/**
3636
* @var bool
3737
*/
38-
private ?bool $getRaw =null;
38+
private ?bool $getRaw = null;
3939

4040
/**
4141
* HooksCreateParameters constructor.
@@ -115,7 +115,7 @@ public function getHTTPQuery()
115115
$queries = [
116116
'callbackURL' => $this->callbackUrl,
117117
'meetingID' => $this->meetingId,
118-
'getRaw' => !is_null($this->getRaw)?($this->getRaw ? 'true' : 'false'):$this->getRaw,
118+
'getRaw' => !is_null($this->getRaw) ? ($this->getRaw ? 'true' : 'false') : $this->getRaw,
119119
];
120120

121121
return $this->buildHTTPQuery($queries);

src/Parameters/HooksDestroyParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ class HooksDestroyParameters extends BaseParameters
2525
/**
2626
* @var string
2727
*/
28-
private ?string $hookId=null;
28+
private ?string $hookId = null;
2929

3030
/**
3131
* HooksDestroyParameters constructor.
3232
*
3333
* @param mixed $hookId
3434
*/
35-
public function __construct($hookId=null)
35+
public function __construct($hookId = null)
3636
{
3737
$this->hookId = $hookId;
3838
}

src/Parameters/InsertDocumentParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class InsertDocumentParameters extends BaseParameters
3030
/**
3131
* @var string
3232
*/
33-
private ?string $meetingId=null;
33+
private ?string $meetingId = null;
3434

3535
/**
3636
* EndMeetingParameters constructor.
3737
*
3838
* @param string $meetingId
3939
*/
40-
public function __construct($meetingId=null)
40+
public function __construct($meetingId = null)
4141
{
4242
$this->meetingId = $meetingId;
4343
}

src/Parameters/IsMeetingRunningParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class IsMeetingRunningParameters extends BaseParameters
2828
/**
2929
* @var string
3030
*/
31-
private ?string $meetingId =null;
31+
private ?string $meetingId = null;
3232

3333
/**
3434
* IsMeetingRunningParameters constructor.
3535
*
3636
* @param mixed $meetingId
3737
*/
38-
public function __construct($meetingId=null)
38+
public function __construct($meetingId = null)
3939
{
4040
$this->meetingId = $meetingId;
4141
}

0 commit comments

Comments
 (0)