From 873f25964b519a969f6b250870aedd0f22ccd22e Mon Sep 17 00:00:00 2001 From: Petre Date: Fri, 20 Sep 2024 10:12:04 +0200 Subject: [PATCH] fix: fixed code style --- src/Api/Meetings/Meeting.php | 5 ----- tests/Fake/Meetings/MeetingsFakeResponse.php | 1 + tests/Unit/Meetings/MeetingsTest.php | 6 +++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Api/Meetings/Meeting.php b/src/Api/Meetings/Meeting.php index 6807d2d..87d1a94 100644 --- a/src/Api/Meetings/Meeting.php +++ b/src/Api/Meetings/Meeting.php @@ -166,7 +166,6 @@ public function join( } return new MeetingsEntity($response->data); - } public function listTemplates( @@ -209,7 +208,6 @@ public function detailTemplate( public function detailControlStatus( string $meetingId ) { - $response = $this->get('meetings/controls', [ 'meetingId' => $meetingId, ]); @@ -584,7 +582,6 @@ public function destroyInterpreter( public function listBreakoutSessions( string $meetingId ) { - $response = $this->get('meetings/'.$meetingId.'/breakoutSessions', []); if (! $response->success) { @@ -635,7 +632,6 @@ public function destroyBreakoutSessions( public function detailSurvey( string $meetingId ) { - $response = $this->get('meetings/'.$meetingId.'/survey', []); if (! $response->success) { @@ -703,7 +699,6 @@ public function createInvitationSources( public function listInvitationSources( string $meetingId ) { - $response = $this->get('meetings/'.$meetingId.'/invitationSources', []); if (! $response->success) { diff --git a/tests/Fake/Meetings/MeetingsFakeResponse.php b/tests/Fake/Meetings/MeetingsFakeResponse.php index 3d871aa..fce409b 100644 --- a/tests/Fake/Meetings/MeetingsFakeResponse.php +++ b/tests/Fake/Meetings/MeetingsFakeResponse.php @@ -168,6 +168,7 @@ public function getErrorOnMeetingsFakeListSessionTypes() $this->fakeError() ); } + public function getMeetingsFakeDetailSessionType() { return json_encode( diff --git a/tests/Unit/Meetings/MeetingsTest.php b/tests/Unit/Meetings/MeetingsTest.php index 8b8e06e..6f34872 100644 --- a/tests/Unit/Meetings/MeetingsTest.php +++ b/tests/Unit/Meetings/MeetingsTest.php @@ -735,7 +735,7 @@ public function test_meetings_query_registrants() ]); $laravel_webex = new LaravelWebex(); - $query_registrants = $laravel_webex->meeting()->queryRegistrants('fake_meeting_id', ['fake_email_1', 'fake_email_2',]); + $query_registrants = $laravel_webex->meeting()->queryRegistrants('fake_meeting_id', ['fake_email_1', 'fake_email_2']); $this->assertInstanceOf(Meeting::class, $query_registrants); $this->assertEquals('fake_id', $query_registrants->id); @@ -751,7 +751,7 @@ public function test_error_on_meeting_query_registrants() ]); $laravel_webex = new LaravelWebex(); - $error_meeting = $laravel_webex->meeting()->queryRegistrants('fake_meeting_id', ['fake_email_1', 'fake_email_2',]); + $error_meeting = $laravel_webex->meeting()->queryRegistrants('fake_meeting_id', ['fake_email_1', 'fake_email_2']); $this->assertInstanceOf(Error::class, $error_meeting); $this->assertEquals('fake_message', $error_meeting->message); @@ -833,7 +833,7 @@ public function test_meetings_update_simultaneous_interpretation() ]); $laravel_webex = new LaravelWebex(); - $updated_simultaneous_interpretation= $laravel_webex->meeting()->updateSimultaneousInterpretation('fake_meeting_id', 'fake_enabled'); + $updated_simultaneous_interpretation = $laravel_webex->meeting()->updateSimultaneousInterpretation('fake_meeting_id', 'fake_enabled'); $this->assertInstanceOf(Meeting::class, $updated_simultaneous_interpretation); $this->assertEquals('fake_id', $updated_simultaneous_interpretation->id);