Passed
Pull Request — master (#4)
by
unknown
02:07
created
src/Holidays.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,10 +123,10 @@  discard block
 block discarded – undo
123 123
         $result = [];
124 124
 
125 125
         $api_url = "https://content.googleapis.com/calendar/v3/calendars/en.{$this->country_code}%23holiday%40group.v.calendar.google.com/events".
126
-               '?singleEvents=false'.
127
-               "&timeMax={$this->end_date}".
128
-               "&timeMin={$this->start_date}".
129
-               "&key={$this->api_key}";
126
+                '?singleEvents=false'.
127
+                "&timeMax={$this->end_date}".
128
+                "&timeMin={$this->start_date}".
129
+                "&key={$this->api_key}";
130 130
 
131 131
         $response = json_decode(file_get_contents($api_url), true);
132 132
 
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
             } elseif ($this->minimal === true) {
141 141
                 foreach ($response['items'] as $holiday) {
142 142
                     $result[] = [
143
-                      'name' => $holiday['summary'],
144
-                      'date' => $holiday['start']['date'],
143
+                        'name' => $holiday['summary'],
144
+                        'date' => $holiday['start']['date'],
145 145
                     ];
146 146
                 }
147 147
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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
     /**
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                     ];
167 167
                 }
168 168
 
169
-                usort($result, function ($a, $b) {
169
+                usort($result, function($a, $b) {
170 170
                     if ($a['date'] == $b['date']) {
171 171
                         return 0;
172 172
                     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             } else {
177 177
                 $result = $response['items'];
178 178
 
179
-                usort($result, function ($a, $b) {
179
+                usort($result, function($a, $b) {
180 180
                     if ($a['start']['date'] == $b['start']['date']) {
181 181
                         return 0;
182 182
                     }
Please login to merge, or discard this patch.