Passed
Pull Request — master (#4)
by
unknown
03:43
created
src/Holidays.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function from($str)
66 66
     {
67
-         $this->start_date = date('Y-m-d',strtotime($str)).'T00:00:00-00:00';
67
+            $this->start_date = date('Y-m-d',strtotime($str)).'T00:00:00-00:00';
68 68
         return $this;
69 69
     }
70 70
     /**
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
         $result = [];
145 145
 
146 146
         $api_url = "https://content.googleapis.com/calendar/v3/calendars/en.{$this->country_code}%23holiday%40group.v.calendar.google.com/events".
147
-               '?singleEvents=false'.
148
-               "&timeMax={$this->end_date}".
149
-               "&timeMin={$this->start_date}".
150
-               "&key={$this->api_key}";
147
+                '?singleEvents=false'.
148
+                "&timeMax={$this->end_date}".
149
+                "&timeMin={$this->start_date}".
150
+                "&key={$this->api_key}";
151 151
 
152 152
         $response = json_decode(file_get_contents($api_url), true);
153 153
 
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
             } elseif ($this->minimal === true) {
162 162
                 foreach ($response['items'] as $holiday) {
163 163
                     $result[] = [
164
-                      'name' => $holiday['summary'],
165
-                      'date' => $holiday['start']['date'],
164
+                        'name' => $holiday['summary'],
165
+                        'date' => $holiday['start']['date'],
166 166
                     ];
167 167
                 }
168 168
 
Please login to merge, or discard this patch.