Passed
Push — main ( 2d7eb2...e04683 )
by Leandro
12:58
created
src/GoogleCalendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function __construct(string $token)
15 15
     {
16 16
         $this->apiUrl = 'https://www.googleapis.com/calendar';
17
-        $this->headers(['Authorization' => 'Bearer '. $token]);
17
+        $this->headers(['Authorization' => 'Bearer ' . $token]);
18 18
     }
19 19
 
20 20
     protected function request(string $method, string $endpoint, ?array $fields = null, ?array $headers = null): void
Please login to merge, or discard this patch.
src/Calendar.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
     {
14 14
         $url_parameters = array();
15 15
 
16
-		$url_parameters['fields'] = 'items(id,summary,timeZone)';
17
-		$url_parameters['minAccessRole'] = 'owner';
16
+        $url_parameters['fields'] = 'items(id,summary,timeZone)';
17
+        $url_parameters['minAccessRole'] = 'owner';
18 18
 
19 19
         $this->request(
20 20
             "GET",
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
         $this->request(
20 20
             "GET",
21
-            "v3/users/me/calendarList?". http_build_query($url_parameters),
21
+            "v3/users/me/calendarList?" . http_build_query($url_parameters),
22 22
             null,
23 23
             $headers
24 24
         );
Please login to merge, or discard this patch.
src/Schedule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $url_parameters = array();
18 18
 var_dump("ANTES CONSULTA");
19
-        if(!empty($syncToken)){
19
+        if (!empty($syncToken)) {
20 20
             $url_parameters['syncToken'] = strip_tags($syncToken);
21 21
         } else {
22
-            if(is_null($startDate)){
22
+            if (is_null($startDate)) {
23 23
                 $startDate = new DateTime('now');
24 24
                 $interval = new DateInterval("P1D");
25 25
                 $startDate->sub($interval);
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
                 var_dump($url_parameters);
31 31
         $this->request(
32 32
             "GET",
33
-            "v3/calendars/{$calendaId}/events?". http_build_query($url_parameters),
33
+            "v3/calendars/{$calendaId}/events?" . http_build_query($url_parameters),
34 34
             null,
35 35
             $headers
36 36
         );
37 37
         return $this;
38 38
     }
39 39
 
40
-    public function create(string $summary, DateTime $start, DateTime $end,?string $description = null, ?string $location = null, ?string $calendaId = 'primary', ?array $attendees = []): Schedule
40
+    public function create(string $summary, DateTime $start, DateTime $end, ?string $description = null, ?string $location = null, ?string $calendaId = 'primary', ?array $attendees = []): Schedule
41 41
     {
42 42
         $schedule = [
43 43
             "summary" => $summary,
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         return $this;
58 58
     }
59 59
 
60
-    public function update(string $eventId, string $summary, DateTime $start, DateTime $end,?string $description = null, ?string $location = null, ?string $calendaId = 'primary', string $status = 'confirmed', ?array $attendees = []): Schedule
60
+    public function update(string $eventId, string $summary, DateTime $start, DateTime $end, ?string $description = null, ?string $location = null, ?string $calendaId = 'primary', string $status = 'confirmed', ?array $attendees = []): Schedule
61 61
     {
62 62
         $schedule = [
63 63
             "summary" => $summary,
Please login to merge, or discard this patch.