From 7fce3a7e1be3df01c69f706d1be8c70240967c31 Mon Sep 17 00:00:00 2001 From: Jordan Welch Date: Mon, 28 Oct 2024 20:34:18 -0500 Subject: [PATCH 1/3] standardize comment spacing in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7023566..6fcc870 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This package makes working with a Google Calendar a breeze. Once it has been set ```php use Spatie\GoogleCalendar\Event; -//create a new event +// create a new event $event = new Event; $event->name = 'A new event'; From bd8af06209ecb1343d86e928350199bb9e59701a Mon Sep 17 00:00:00 2001 From: Jordan Welch Date: Mon, 28 Oct 2024 20:44:25 -0500 Subject: [PATCH 2/3] Add php language type on code block --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fcc870..f8591e4 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ php artisan vendor:publish --provider="Spatie\GoogleCalendar\GoogleCalendarServi ``` This will publish a file called `google-calendar.php` in your config-directory with these contents: -``` +```php return [ 'default_auth_profile' => env('GOOGLE_CALENDAR_AUTH_PROFILE', 'service_account'), From f042d1cc8a2907f52a8c75243d70fd93fcbc9136 Mon Sep 17 00:00:00 2001 From: Jordan Welch Date: Mon, 28 Oct 2024 20:49:05 -0500 Subject: [PATCH 3/3] fix syntax and spacing --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f8591e4..e65fb58 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ return [ ], /* - * The id of the Google Calendar that will be used by default. + * The id of the Google Calendar that will be used by default. */ 'calendar_id' => env('GOOGLE_CALENDAR_ID'), ]; @@ -285,7 +285,7 @@ $event->save(); Alternatively, you can use the update method: ```php -$event = Event::find($eventId) +$event = Event::find($eventId); $event->update(['name' => 'My updated title']); ``` @@ -308,8 +308,8 @@ You can set source urls in your events, which are only visible to the creator of $yourEvent->source = [ 'title' => 'Test Source Title', 'url' => 'http://testsource.url', - ]; - ``` +]; +``` ## Setting a color