Passed
Pull Request — master (#203)
by
unknown
10:34
created
src/Parameters/CreateMeetingParameters.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @var string
32 32
      */
33
-    private ?string $meetingId=null;
33
+    private ?string $meetingId = null;
34 34
 
35 35
     /**
36 36
      * @var string
37 37
      */
38
-    private ?string $meetingName =null;
38
+    private ?string $meetingName = null;
39 39
 
40 40
     /**
41 41
      * @var string
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      * @param mixed $meetingId
344 344
      * @param mixed $meetingName
345 345
      */
346
-    public function __construct($meetingId =null , $meetingName=null)
346
+    public function __construct($meetingId = null, $meetingName = null)
347 347
     {
348 348
         $this->meetingId   = $meetingId;
349 349
         $this->meetingName = $meetingName;
@@ -1526,32 +1526,32 @@  discard block
 block discarded – undo
1526 1526
             'webcamsOnlyForModerator'                => !is_null($this->webcamsOnlyForModerator) ? ($this->webcamsOnlyForModerator ? 'true' : 'false') : $this->webcamsOnlyForModerator,
1527 1527
             'logo'                                   => $this->logo,
1528 1528
             'copyright'                              => $this->copyright,
1529
-            'muteOnStart'                            => !is_null($this->muteOnStart) ? ($this->muteOnStart? 'true' : 'false'): $this->muteOnStart,
1529
+            'muteOnStart'                            => !is_null($this->muteOnStart) ? ($this->muteOnStart ? 'true' : 'false') : $this->muteOnStart,
1530 1530
             '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,
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,
1543 1543
             'bannerText'                             => trim($this->bannerText),
1544 1544
             '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,
1545
+            'learningDashboardEnabled'               => !is_null($this->learningDashboardEnabled) ? ($this->learningDashboardEnabled ? 'true' : 'false') : $this->learningDashboardEnabled,
1546
+            'virtualBackgroundsDisabled'             => !is_null($this->virtualBackgroundsDisabled) ? ($this->virtualBackgroundsDisabled ? 'true' : 'false') : $this->virtualBackgroundsDisabled,
1547 1547
             'endWhenNoModeratorDelayInMinutes'       => $this->endWhenNoModeratorDelayInMinutes,
1548
-            'allowRequestsWithoutSession'            => !is_null($this->allowRequestsWithoutSession)?($this->allowRequestsWithoutSession ? 'true' : 'false'):$this->allowRequestsWithoutSession,
1548
+            'allowRequestsWithoutSession'            => !is_null($this->allowRequestsWithoutSession) ? ($this->allowRequestsWithoutSession ? 'true' : 'false') : $this->allowRequestsWithoutSession,
1549 1549
             '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 ,
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,
1555 1555
             'meetingLayout'                          => $this->meetingLayout,
1556 1556
             'meetingCameraCap'                       => $this->meetingCameraCap,
1557 1557
             'userCameraCap'                          => $this->userCameraCap,
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
             'meetingExpireWhenLastUserLeftInMinutes' => $this->meetingExpireWhenLastUserLeftInMinutes,
1560 1560
             'preUploadedPresentationOverrideDefault' => $this->preUploadedPresentationOverrideDefault,
1561 1561
             'disabledFeatures'                       => join(',', $this->disabledFeatures),
1562
-            'notifyRecordingIsOn'                    => is_null($this->notifyRecordingIsOn)?($this->notifyRecordingIsOn ? 'true' : 'false'):$this->notifyRecordingIsOn,
1562
+            'notifyRecordingIsOn'                    => is_null($this->notifyRecordingIsOn) ? ($this->notifyRecordingIsOn ? 'true' : 'false') : $this->notifyRecordingIsOn,
1563 1563
             'presentationUploadExternalUrl'          => $this->presentationUploadExternalUrl,
1564 1564
             'presentationUploadExternalDescription'  => $this->presentationUploadExternalDescription,
1565 1565
         ];
@@ -1567,10 +1567,10 @@  discard block
 block discarded – undo
1567 1567
         // Add breakout rooms parameters only if the meeting is a breakout room
1568 1568
         if ($this->isBreakout()) {
1569 1569
             $queries = array_merge($queries, [
1570
-                'isBreakout'      => !is_null($this->isBreakout)?($this->isBreakout ? 'true' : 'false'):$this->isBreakout,
1570
+                'isBreakout'      => !is_null($this->isBreakout) ? ($this->isBreakout ? 'true' : 'false') : $this->isBreakout,
1571 1571
                 'parentMeetingID' => $this->parentMeetingId,
1572 1572
                 'sequence'        => $this->sequence,
1573
-                'freeJoin'        => !is_null($this->freeJoin)?($this->freeJoin ? 'true' : 'false'):$this->freeJoin,
1573
+                'freeJoin'        => !is_null($this->freeJoin) ? ($this->freeJoin ? 'true' : 'false') : $this->freeJoin,
1574 1574
             ]);
1575 1575
         } else {
1576 1576
             $queries = array_merge($queries, [
Please login to merge, or discard this patch.
src/Parameters/EndMeetingParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @var string
30 30
      */
31
-    private ?string $meetingId =null;
31
+    private ?string $meetingId = null;
32 32
 
33 33
     /**
34 34
      * @deprecated
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param string $meetingId
44 44
      * @param string $password
45 45
      */
46
-    public function __construct($meetingId=null, $password = null)
46
+    public function __construct($meetingId = null, $password = null)
47 47
     {
48 48
         $this->password  = $password;
49 49
         $this->meetingId = $meetingId;
Please login to merge, or discard this patch.
src/Parameters/DeleteRecordingsParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
     /**
29 29
      * @var string
30 30
      */
31
-    private ?string $recordingId =null;
31
+    private ?string $recordingId = null;
32 32
 
33 33
     /**
34 34
      * DeleteRecordingsParameters constructor.
35 35
      *
36 36
      * @param mixed $recordingId
37 37
      */
38
-    public function __construct($recordingId=null)
38
+    public function __construct($recordingId = null)
39 39
     {
40 40
         $this->recordingId = $recordingId;
41 41
     }
Please login to merge, or discard this patch.
src/Parameters/GetRecordingTextTracksParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
     /**
29 29
      * @var string
30 30
      */
31
-    private ?string $recordId =null;
31
+    private ?string $recordId = null;
32 32
 
33 33
     /**
34 34
      * GetRecordingTextTracksParameters constructor.
35 35
      *
36 36
      * @param mixed $recordId
37 37
      */
38
-    public function __construct($recordId=null)
38
+    public function __construct($recordId = null)
39 39
     {
40 40
         $this->recordId = $recordId;
41 41
     }
Please login to merge, or discard this patch.
src/Parameters/HooksDestroyParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
25 25
     /**
26 26
      * @var string
27 27
      */
28
-    private ?string $hookId=null;
28
+    private ?string $hookId = null;
29 29
 
30 30
     /**
31 31
      * HooksDestroyParameters constructor.
32 32
      *
33 33
      * @param mixed $hookId
34 34
      */
35
-    public function __construct($hookId=null)
35
+    public function __construct($hookId = null)
36 36
     {
37 37
         $this->hookId = $hookId;
38 38
     }
Please login to merge, or discard this patch.
src/Parameters/GetMeetingInfoParameters.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,25 +28,25 @@
 block discarded – undo
28 28
     /**
29 29
      * @var string
30 30
      */
31
-    private ?string $meetingId =null;
31
+    private ?string $meetingId = null;
32 32
 
33 33
     /**
34 34
      * @var int
35 35
      */
36 36
 
37
-    private ?int $offset = null ;
37
+    private ?int $offset = null;
38 38
 
39 39
     /**
40 40
      * @var int
41 41
      */
42
-    private ?int $limit =null;
42
+    private ?int $limit = null;
43 43
 
44 44
     /**
45 45
      * GetMeetingInfoParameters constructor.
46 46
      *
47 47
      * @param mixed $meetingId
48 48
      */
49
-    public function __construct($meetingId=null)
49
+    public function __construct($meetingId = null)
50 50
     {
51 51
         $this->meetingId = $meetingId;
52 52
     }
Please login to merge, or discard this patch.
src/Parameters/UserDataParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
         if (0 !== count($this->userData)) {
59 59
             foreach ($this->userData as $k => $v) {
60 60
                 if (!is_bool($v)) {
61
-                    $queries['userdata-' . $k] = $v;
61
+                    $queries['userdata-'.$k] = $v;
62 62
                 } else {
63
-                    $queries['userdata-' . $k] = !is_null( $v)?($v ? 'true' : 'false'): $v;
63
+                    $queries['userdata-'.$k] = !is_null($v) ? ($v ? 'true' : 'false') : $v;
64 64
                 }
65 65
             }
66 66
         }
Please login to merge, or discard this patch.
src/Parameters/IsMeetingRunningParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
     /**
29 29
      * @var string
30 30
      */
31
-    private ?string $meetingId =null;
31
+    private ?string $meetingId = null;
32 32
 
33 33
     /**
34 34
      * IsMeetingRunningParameters constructor.
35 35
      *
36 36
      * @param mixed $meetingId
37 37
      */
38
-    public function __construct($meetingId=null)
38
+    public function __construct($meetingId = null)
39 39
     {
40 40
         $this->meetingId = $meetingId;
41 41
     }
Please login to merge, or discard this patch.