Passed
Pull Request — master (#203)
by
unknown
10:34
created
src/Parameters/UpdateRecordingsParameters.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
      * UpdateRecordingsParameters 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/PublishRecordingsParameters.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@  discard block
 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
      * @var bool
35 35
      */
36
-    private ?bool $publish=null;
36
+    private ?bool $publish = null;
37 37
 
38 38
     /**
39 39
      * PublishRecordingsParameters constructor.
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @param mixed $recordingId
42 42
      * @param mixed $publish
43 43
      */
44
-    public function __construct($recordingId, $publish=null)
44
+    public function __construct($recordingId, $publish = null)
45 45
     {
46 46
         $this->recordingId = $recordingId;
47 47
         $this->publish     = $publish;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         return $this->buildHTTPQuery(
92 92
             [
93 93
                 'recordID' => $this->recordingId,
94
-                'publish'  => !is_null($this->publish)?($this->publish ? 'true' : 'false'):$this->publish,
94
+                'publish'  => !is_null($this->publish) ? ($this->publish ? 'true' : 'false') : $this->publish,
95 95
             ]
96 96
         );
97 97
     }
Please login to merge, or discard this patch.
src/Parameters/MetaParameters.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->meta)) {
59 59
             foreach ($this->meta as $k => $v) {
60 60
                 if (!is_bool($v)) {
61
-                    $queries['meta_' . $k] = $v;
61
+                    $queries['meta_'.$k] = $v;
62 62
                 } else {
63
-                    $queries['meta_' . $k] = !is_null($v)?($v ? 'true' : 'false'):$v;
63
+                    $queries['meta_'.$k] = !is_null($v) ? ($v ? 'true' : 'false') : $v;
64 64
                 }
65 65
             }
66 66
         }
Please login to merge, or discard this patch.
src/Parameters/InsertDocumentParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 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
      * EndMeetingParameters constructor.
37 37
      *
38 38
      * @param string $meetingId
39 39
      */
40
-    public function __construct($meetingId=null)
40
+    public function __construct($meetingId = null)
41 41
     {
42 42
         $this->meetingId = $meetingId;
43 43
     }
Please login to merge, or discard this patch.
src/Parameters/GetRecordingsParameters.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@
 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 string
35 35
      */
36
-    private ?string $recordId =null;
36
+    private ?string $recordId = null;
37 37
 
38 38
     /**
39 39
      * @var string
40 40
      */
41
-    private ?string $state =null;
41
+    private ?string $state = null;
42 42
 
43 43
     /**
44 44
      * @return string
Please login to merge, or discard this patch.
src/Parameters/HooksCreateParameters.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,17 +25,17 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * @var string
27 27
      */
28
-    private  ?string $callbackUrl =null;
28
+    private ?string $callbackUrl = null;
29 29
 
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 bool
37 37
      */
38
-    private ?bool $getRaw =null;
38
+    private ?bool $getRaw = null;
39 39
 
40 40
     /**
41 41
      * HooksCreateParameters constructor.
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $queries = [
116 116
             'callbackURL' => $this->callbackUrl,
117 117
             '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,
119 119
         ];
120 120
 
121 121
         return $this->buildHTTPQuery($queries);
Please login to merge, or discard this patch.
src/Parameters/JoinMeetingParameters.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -30,49 +30,49 @@  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 $username =null;
38
+    private ?string $username = null;
39 39
 
40 40
     /**
41 41
      * @var string
42 42
      *
43 43
      * @deprecated
44 44
      */
45
-    private ?string $password=null;
45
+    private ?string $password = null;
46 46
 
47 47
     /**
48 48
      * @var string
49 49
      */
50
-    private ?string $userId=null;
50
+    private ?string $userId = null;
51 51
 
52 52
     /**
53 53
      * @var string
54 54
      */
55
-    private ?string $webVoiceConf=null;
55
+    private ?string $webVoiceConf = null;
56 56
 
57 57
     /**
58 58
      * @var string
59 59
      */
60
-    private ?string $creationTime=null;
60
+    private ?string $creationTime = null;
61 61
 
62 62
     /**
63 63
      * @var string
64 64
      */
65
-    private ?string $avatarURL =null;
65
+    private ?string $avatarURL = null;
66 66
 
67 67
     /**
68 68
      * @var bool
69 69
      */
70
-    private ?bool $redirect =null;
70
+    private ?bool $redirect = null;
71 71
 
72 72
     /**
73 73
      * @var string
74 74
      */
75
-    private ?string $clientURL =null;
75
+    private ?string $clientURL = null;
76 76
 
77 77
     /**
78 78
      * @var array
@@ -82,27 +82,27 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * @var string
84 84
      */
85
-    private ?string $role =null;
85
+    private ?string $role = null;
86 86
 
87 87
     /**
88 88
      * @var bool
89 89
      */
90
-    private ?bool $excludeFromDashboard =null;
90
+    private ?bool $excludeFromDashboard = null;
91 91
 
92 92
     /**
93 93
      * @var string
94 94
      */
95
-    private ?string $configToken=null;
95
+    private ?string $configToken = null;
96 96
 
97 97
     /**
98 98
      * @var bool
99 99
      */
100
-    private ?bool $guest =null;
100
+    private ?bool $guest = null;
101 101
 
102 102
     /**
103 103
      * @var string
104 104
      */
105
-    private ?string $defaultLayout =null;
105
+    private ?string $defaultLayout = null;
106 106
 
107 107
     /**
108 108
      * JoinMeetingParametersTest constructor.
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      * @param mixed $meetingId
113 113
      * @param mixed $username
114 114
      */
115
-    public function __construct($meetingId =null, $username=null, $passworOrRole=null)
115
+    public function __construct($meetingId = null, $username = null, $passworOrRole = null)
116 116
     {
117 117
         $this->meetingId = $meetingId;
118 118
         $this->username  = $username;
@@ -430,12 +430,12 @@  discard block
 block discarded – undo
430 430
             'webVoiceConf'         => $this->webVoiceConf,
431 431
             'createTime'           => $this->creationTime,
432 432
             'role'                 => $this->role,
433
-            'excludeFromDashboard' => !is_null($this->excludeFromDashboard)?($this->excludeFromDashboard ? 'true' : 'false'):$this->excludeFromDashboard,
433
+            'excludeFromDashboard' => !is_null($this->excludeFromDashboard) ? ($this->excludeFromDashboard ? 'true' : 'false') : $this->excludeFromDashboard,
434 434
             'avatarURL'            => $this->avatarURL,
435
-            'redirect'             => !is_null($this->redirect)?($this->redirect ? 'true' : 'false'):$this->redirect,
435
+            'redirect'             => !is_null($this->redirect) ? ($this->redirect ? 'true' : 'false') : $this->redirect,
436 436
             'clientURL'            => $this->clientURL,
437 437
             'configToken'          => $this->configToken,
438
-            'guest'                => !is_null($this->guest)?($this->guest ? 'true' : 'false'):$this->guest,
438
+            'guest'                => !is_null($this->guest) ? ($this->guest ? 'true' : 'false') : $this->guest,
439 439
             'defaultLayout'        => $this->defaultLayout,
440 440
         ];
441 441
 
Please login to merge, or discard this patch.
src/Parameters/PutRecordingTextTrackParameters.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,27 +28,27 @@
 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
      * @var string
35 35
      */
36
-    private ?string $kind=null;
36
+    private ?string $kind = null;
37 37
 
38 38
     /**
39 39
      * @var string
40 40
      */
41
-    private ?string $lang=null;
41
+    private ?string $lang = null;
42 42
 
43 43
     /**
44 44
      * @var string
45 45
      */
46
-    private ?string $label =null;
46
+    private ?string $label = null;
47 47
 
48 48
     /**
49 49
      * PutRecordingTextTrackParameters constructor.
50 50
      */
51
-    public function __construct(string $recordId=null, string $kind=null, string $lang=null, string $label=null)
51
+    public function __construct(string $recordId = null, string $kind = null, string $lang = null, string $label = null)
52 52
     {
53 53
         $this->recordId = $recordId;
54 54
         $this->kind     = $kind;
Please login to merge, or discard this patch.
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.