From a1a932cf16bc6f55df119b6c78cf351b53d54843 Mon Sep 17 00:00:00 2001 From: Jason Mayo Date: Tue, 17 Sep 2019 10:47:13 +0100 Subject: [PATCH] Readme formatting --- README.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index cc7a9fd..bf8f5c8 100644 --- a/README.md +++ b/README.md @@ -191,33 +191,33 @@ Depending on your scope type when you authorised the account, the supported requ To recieve data when a user connects their Strava account to Craft, use the `EVENT_USER_CONNECTED` event. This returns `$event->user`: - use bymayo\stravasync\events\UserConnectedEvent; - use bymayo\stravasync\services\UserService; - use yii\base\Event; - - Event::on( - UserService::class, - UserService::EVENT_USER_CONNECTED, - function(UserConnectedEvent $event) { - // Do something - } - ); + use bymayo\stravasync\events\UserConnectedEvent; + use bymayo\stravasync\services\UserService; + use yii\base\Event; + + Event::on( + UserService::class, + UserService::EVENT_USER_CONNECTED, + function(UserConnectedEvent $event) { + // Do something + } + ); ### Disconnected Event To recieve data when a user disconnects their Strava account to Craft, use the `EVENT_USER_DISCONNECTED` event. This returns `$event->user`: - use bymayo\stravasync\events\userDisconnectedEvent; - use bymayo\stravasync\services\UserService; - use yii\base\Event; - - Event::on( - UserService::class, - UserService::EVENT_USER_DISCONNECTED, - function(userDisconnectedEvent $event) { - // Do something - } - ); + use bymayo\stravasync\events\userDisconnectedEvent; + use bymayo\stravasync\services\UserService; + use yii\base\Event; + + Event::on( + UserService::class, + UserService::EVENT_USER_DISCONNECTED, + function(userDisconnectedEvent $event) { + // Do something + } + ); ### Webhook Event