From 32b3b9cf06e8d17ddc93b41ba348f5b6e14045fc Mon Sep 17 00:00:00 2001 From: Ren Xie Liu Date: Thu, 14 Nov 2024 13:28:35 +0800 Subject: [PATCH] Fix style --- lib/Parser/Json.php | 2 +- .../VObject/ITip/BrokerAttendeeReplyTest.php | 24 ++++++++-------- tests/VObject/ITip/BrokerDeleteEventTest.php | 12 ++++---- tests/VObject/ITip/BrokerNewEventTest.php | 14 +++++----- tests/VObject/ITip/BrokerUpdateEventTest.php | 28 +++++++++---------- tests/VObject/Parser/MimeDirTest.php | 4 +-- tests/VObject/Recur/RRuleIteratorTest.php | 2 +- tests/VObject/VCardConverterTest.php | 4 +-- 8 files changed, 45 insertions(+), 45 deletions(-) diff --git a/lib/Parser/Json.php b/lib/Parser/Json.php index df87114a1..6403af4e9 100644 --- a/lib/Parser/Json.php +++ b/lib/Parser/Json.php @@ -131,7 +131,7 @@ public function parseProperty(array $jProp): Property list( $propertyName, $parameters, - $valueType + $valueType, ) = $jProp; $propertyName = strtoupper($propertyName); diff --git a/tests/VObject/ITip/BrokerAttendeeReplyTest.php b/tests/VObject/ITip/BrokerAttendeeReplyTest.php index 6590356bb..75d2cf06f 100644 --- a/tests/VObject/ITip/BrokerAttendeeReplyTest.php +++ b/tests/VObject/ITip/BrokerAttendeeReplyTest.php @@ -61,7 +61,7 @@ public function testAccepted(): void ATTENDEE;PARTSTAT=ACCEPTED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -179,7 +179,7 @@ public function testAcceptedWithTz(): void ATTENDEE;PARTSTAT=ACCEPTED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -325,7 +325,7 @@ public function testRecurringReply(): void ATTENDEE;PARTSTAT=DECLINED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -464,7 +464,7 @@ public function testRecurringAllDay(): void ATTENDEE;PARTSTAT=DECLINED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -556,7 +556,7 @@ public function testNoChangeForceSend(): void ATTENDEE;PARTSTAT=NEEDS-ACTION;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; $this->parse($oldMessage, $newMessage, $expected); @@ -659,7 +659,7 @@ public function testCreateReplyByException(): void ATTENDEE;PARTSTAT=DECLINED:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; $this->parse($oldMessage, $newMessage, $expected); @@ -728,7 +728,7 @@ public function testCreateReplyByExceptionTz(): void ATTENDEE;PARTSTAT=DECLINED:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; $this->parse($oldMessage, $newMessage, $expected); @@ -797,7 +797,7 @@ public function testCreateReplyByExceptionAllDay(): void ATTENDEE;PARTSTAT=DECLINED:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; $this->parse($oldMessage, $newMessage, $expected); @@ -857,7 +857,7 @@ public function testDeclined(): void ATTENDEE;PARTSTAT=DECLINED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -1039,7 +1039,7 @@ public function testAcceptedAllDay(): void ATTENDEE;PARTSTAT=ACCEPTED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -1110,7 +1110,7 @@ public function testReplyNoMasterEvent(): void ATTENDEE;PARTSTAT=ACCEPTED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -1198,7 +1198,7 @@ public function testPartyCrasher(): void END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; diff --git a/tests/VObject/ITip/BrokerDeleteEventTest.php b/tests/VObject/ITip/BrokerDeleteEventTest.php index 4de219f82..19f393954 100644 --- a/tests/VObject/ITip/BrokerDeleteEventTest.php +++ b/tests/VObject/ITip/BrokerDeleteEventTest.php @@ -52,7 +52,7 @@ public function testOrganizerDeleteWithDtend(): void ATTENDEE;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], [ @@ -80,7 +80,7 @@ public function testOrganizerDeleteWithDtend(): void ATTENDEE;CN=Two:mailto:two@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -135,7 +135,7 @@ public function testOrganizerDeleteWithDuration(): void ATTENDEE;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], [ @@ -163,7 +163,7 @@ public function testOrganizerDeleteWithDuration(): void ATTENDEE;CN=Two:mailto:two@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -218,7 +218,7 @@ public function testAttendeeDeleteWithDtend(): void ATTENDEE;PARTSTAT=DECLINED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -273,7 +273,7 @@ public function testAttendeeReplyWithDuration(): void ATTENDEE;PARTSTAT=DECLINED;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; diff --git a/tests/VObject/ITip/BrokerNewEventTest.php b/tests/VObject/ITip/BrokerNewEventTest.php index d85455295..b0b27f41c 100644 --- a/tests/VObject/ITip/BrokerNewEventTest.php +++ b/tests/VObject/ITip/BrokerNewEventTest.php @@ -183,7 +183,7 @@ public function testRecurrenceInvite(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -221,7 +221,7 @@ public function testRecurrenceInvite(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -248,7 +248,7 @@ public function testRecurrenceInvite(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -312,7 +312,7 @@ public function testRecurrenceInvite2(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -349,7 +349,7 @@ public function testRecurrenceInvite2(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -376,7 +376,7 @@ public function testRecurrenceInvite2(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -427,7 +427,7 @@ public function testRecurrenceInvite3(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; diff --git a/tests/VObject/ITip/BrokerUpdateEventTest.php b/tests/VObject/ITip/BrokerUpdateEventTest.php index 1497bb711..738c769e8 100644 --- a/tests/VObject/ITip/BrokerUpdateEventTest.php +++ b/tests/VObject/ITip/BrokerUpdateEventTest.php @@ -71,7 +71,7 @@ public function testInviteChange(): void ATTENDEE;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -101,7 +101,7 @@ public function testInviteChange(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -131,7 +131,7 @@ public function testInviteChange(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -193,7 +193,7 @@ public function testInviteChangeFromNonSchedulingToSchedulingObject(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -251,7 +251,7 @@ public function testInviteChangeFromSchedulingToNonSchedulingObject(): void ATTENDEE;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -350,7 +350,7 @@ public function testRemoveInstance(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -427,7 +427,7 @@ public function testInviteChangeSignificantChange(): void ATTENDEE;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -457,7 +457,7 @@ public function testInviteChangeSignificantChange(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -487,7 +487,7 @@ public function testInviteChangeSignificantChange(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -555,7 +555,7 @@ public function testInviteNoChange(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -623,7 +623,7 @@ public function testInviteNoChangeForceSend(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -691,7 +691,7 @@ public function testInviteRemoveAttendees(): void ATTENDEE;CN=One:mailto:one@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], [ 'uid' => 'foobar', @@ -719,7 +719,7 @@ public function testInviteRemoveAttendees(): void ATTENDEE;CN=Two:mailto:two@example.org END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; @@ -808,7 +808,7 @@ public function testInviteChangeExdateOrder(): void DTSTAMP:**ANY** END:VEVENT END:VCALENDAR -ICS +ICS, ], ]; diff --git a/tests/VObject/Parser/MimeDirTest.php b/tests/VObject/Parser/MimeDirTest.php index db5735b0c..c91b13e6e 100644 --- a/tests/VObject/Parser/MimeDirTest.php +++ b/tests/VObject/Parser/MimeDirTest.php @@ -234,7 +234,7 @@ public function provideBrokenVCalendar(): array SEQUENCE:0 END:VEVENT END:VCALENDAR -EOF +EOF, ], [ <<