]> Raphaël G. Git Repositories - airbundle/commitdiff
Remove debug
authorRaphaël Gertz <git@rapsys.eu>
Wed, 28 Jul 2021 06:24:28 +0000 (08:24 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 28 Jul 2021 06:24:28 +0000 (08:24 +0200)
Add todo about shared fields to drop

Command/CalendarCommand.php

index bc1075e4b9806c96f086399de281bbdcc4ebb306..38f7637b842526e7db76b86811183b4a6bde80de 100644 (file)
@@ -122,25 +122,6 @@ class CalendarCommand extends Command {
                //Retrieve calendars
                $calendars = $cacheCalendars->get();
 
-               //XXX: calendars content
-               #var_export($calendars);
-               #$debug = [
-               #       '635317121880-usqucmne71jnmprl8br9khh2om4n8cmh.apps.googleusercontent.com' => [
-               #               'project' => 'calendar-317315',
-               #               'secret' => 'HRsKd4FIc9gxQHM4IoBWnlbD',
-               #               'redirect' => 'https://airlibre.eu/calendar/callback',
-               #               'tokens' => [
-               #                       'ya29.a0ARrdaM_cNpedJ-B3irC76_0-C7cfF-WmMh0smAs4m7cSvBChnniWr-e79q0IfAbh5DSG4FlHbCMvmaYb7xX4V45PujT2U4InZmpHfspiPv-QeR4XeZJp7bLXwnw7A4M0imeeYyQcwCW7GJ8O7dGLBQlBZAvt_Q' => [
-               #                               'calendar' => 'airlibre',
-               #                               'expire' => 3599,
-               #                               'scope' => 'https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/calendar.events',
-               #                               'type' => 'Bearer',
-               #                               'created' => 1625417137,
-               #                       ],
-               #               ],
-               #       ],
-               #];
-
                //Check expired token
                foreach($calendars as $clientId => $client) {
                        //Get google client
@@ -297,6 +278,7 @@ class CalendarCommand extends Command {
                                foreach($sessions as $sessionId => $session) {
                                        //Init shared properties
                                        //TODO: validate for constraints here ??? https://developers.google.com/calendar/api/guides/extended-properties
+                                       //TODO: drop shared as unused ???
                                        $shared = [
                                                'gps' => $session['l_latitude'].','.$session['l_longitude']
                                        ];