GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#3)
by
unknown
04:24
created
src/Facade/Requests/EventCreateRequest.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
         if($time_zone->getName() == 'UTC'){
61 61
             $event->setUseUtc(true)
62
-                  ->setUseTimezone(false);
62
+                    ->setUseTimezone(false);
63 63
         }
64 64
         else{
65 65
             $event->setUseUtc(false)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
         if($time_zone->getName() == 'UTC'){
61 61
             $event->setUseUtc(true)
62 62
                   ->setUseTimezone(false);
63
-        }
64
-        else{
63
+        } else{
65 64
             $event->setUseUtc(false)
66 65
                 ->setUseTimezone(true);
67 66
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,16 +57,16 @@
 block discarded – undo
57 57
             ->setDescription(strip_tags($this->vo->getDescription()))
58 58
             ->setDescriptionHTML($this->vo->getDescription());
59 59
 
60
-        if($time_zone->getName() == 'UTC'){
60
+        if ($time_zone->getName() == 'UTC') {
61 61
             $event->setUseUtc(true)
62 62
                   ->setUseTimezone(false);
63 63
         }
64
-        else{
64
+        else {
65 65
             $event->setUseUtc(false)
66 66
                 ->setUseTimezone(true);
67 67
         }
68 68
 
69
-        if(!empty($this->vo->getLocationTitle())){
69
+        if (!empty($this->vo->getLocationTitle())) {
70 70
             $geo = sprintf("%s;%s", $this->vo->getLocationLat(), $this->vo->getLocationLng());
71 71
             $event->setLocation($this->vo->getLocationTitle(), $this->vo->getLocationTitle(), $geo);
72 72
         }
Please login to merge, or discard this patch.
src/Facade/Requests/UserPrincipalRequest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function __construct(){
23 23
         $this->properties = [
24
-          '{DAV:}current-user-principal'
24
+            '{DAV:}current-user-principal'
25 25
         ];
26 26
     }
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 final class UserPrincipalRequest extends AbstractPropFindWebDAVRequest
20 20
 {
21 21
 
22
-    public function __construct(){
22
+    public function __construct() {
23 23
         $this->properties = [
24 24
           '{DAV:}current-user-principal'
25 25
         ];
Please login to merge, or discard this patch.
src/Facade/Requests/CalendarMultiGetRequest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function getContent()
39 39
     {
40
-       $service = new Service();
40
+        $service = new Service();
41 41
 
42 42
         $service->namespaceMap = [
43 43
             'DAV:'                          => 'D',
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * CalendarMultiGetRequest constructor.
29 29
      * @param array $hrefs
30 30
      */
31
-    public function __construct(array $hrefs){
31
+    public function __construct(array $hrefs) {
32 32
         $this->hrefs = $hrefs;
33 33
     }
34 34
 
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
             'DAV:'                          => 'D',
44 44
             'urn:ietf:params:xml:ns:caldav' => 'C',
45 45
         ];
46
-        $nodes =  [
46
+        $nodes = [
47 47
             '{DAV:}prop' => [
48 48
                 '{DAV:}getetag' => '',
49 49
                 '{urn:ietf:params:xml:ns:caldav}calendar-data' => ''
50 50
             ],
51 51
         ];
52 52
         // set hrefs
53
-        foreach ($this->hrefs as $href){
53
+        foreach ($this->hrefs as $href) {
54 54
             $nodes[] = ['name' => '{DAV:}href', 'value' => $href];
55 55
         }
56 56
         return $service->write('{urn:ietf:params:xml:ns:caldav}calendar-multiget', $nodes);
Please login to merge, or discard this patch.
src/Facade/Requests/CalendarQueryRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,15 +49,15 @@
 block discarded – undo
49 49
         $filter = [];
50 50
         $props  = [];
51 51
 
52
-        if($this->filter->useGetETags()){
52
+        if ($this->filter->useGetETags()) {
53 53
             $props['{DAV:}getetag'] = '';
54 54
         }
55 55
 
56
-        if($this->filter->useGetCalendarData()){
56
+        if ($this->filter->useGetCalendarData()) {
57 57
             $props['{urn:ietf:params:xml:ns:caldav}calendar-data'] = '';
58 58
         }
59 59
 
60
-        $nodes =  [
60
+        $nodes = [
61 61
             '{DAV:}prop' => [
62 62
                 $props
63 63
             ],
Please login to merge, or discard this patch.
src/Facade/Requests/GetCalendarsRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  */
18 18
 final class GetCalendarsRequest extends AbstractPropFindWebDAVRequest
19 19
 {
20
-    public function __construct(){
20
+    public function __construct() {
21 21
         $this->properties = [
22 22
             '{DAV:}resourcetype',
23 23
             '{DAV:}displayname',
Please login to merge, or discard this patch.
src/Facade/Requests/GetCalendarRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * @see https://tools.ietf.org/html/rfc6578 for sync-token
24 24
      * GetCalendarRequest constructor.
25 25
      */
26
-    public function __construct(){
26
+    public function __construct() {
27 27
         $this->properties = [
28 28
             '{DAV:}displayname',
29 29
             '{DAV:}resourcetype',
Please login to merge, or discard this patch.
src/Facade/Requests/CalDAVRequestFactory.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     const EventCreateRequestType      = 'CREATE_EVENT';
30 30
     const EventUpdateRequestType      = 'UPDATE_EVENT';
31 31
 
32
-    private function __construct(){}
32
+    private function __construct() {}
33 33
 
34 34
     /**
35 35
      * @var CalDAVRequestFactory
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * @return CalDAVRequestFactory
41 41
      */
42
-    public static function getInstance(){
43
-        if(is_null(self::$instance)) self::$instance = new CalDAVRequestFactory();
42
+    public static function getInstance() {
43
+        if (is_null(self::$instance)) self::$instance = new CalDAVRequestFactory();
44 44
         return self::$instance;
45 45
     }
46 46
 
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
      * @return IAbstractWebDAVRequest|null
51 51
      * @throws \InvalidArgumentException
52 52
      */
53
-    public function build($type, $params = []){
54
-        switch(strtoupper($type)){
53
+    public function build($type, $params = []) {
54
+        switch (strtoupper($type)) {
55 55
             case self::PrincipalRequestType:
56 56
                 return new UserPrincipalRequest();
57 57
             case self::CalendarHomeRequestType:
@@ -61,27 +61,27 @@  discard block
 block discarded – undo
61 61
             case self::CalendarRequestType:
62 62
                 return new GetCalendarRequest();
63 63
             case self::CalendarSyncRequestType:
64
-                if(count($params) == 0 )
64
+                if (count($params) == 0)
65 65
                     throw new \InvalidArgumentException();
66 66
                 return new CalendarSyncRequest($params[0]);
67 67
             case self::CalendarMultiGetRequestType:
68
-                if(count($params) == 0 )
68
+                if (count($params) == 0)
69 69
                     throw new \InvalidArgumentException();
70 70
                 return new CalendarMultiGetRequest($params[0]);
71 71
             case self::CalendarQueryRequestType:
72
-                if(count($params) == 0 )
72
+                if (count($params) == 0)
73 73
                     throw new \InvalidArgumentException();
74 74
                 return new CalendarQueryRequest($params[0]);
75 75
             case self::CalendarCreateRequestType:
76
-                if(count($params) == 0 )
76
+                if (count($params) == 0)
77 77
                     throw new \InvalidArgumentException();
78 78
                 return new CalendarCreateRequest($params[0]);
79 79
             case self::EventCreateRequestType:
80
-                if(count($params) == 0 )
80
+                if (count($params) == 0)
81 81
                     throw new \InvalidArgumentException();
82 82
                 return new EventCreateRequest($params[0]);
83 83
             case self::EventUpdateRequestType:
84
-                if(count($params) == 0 )
84
+                if (count($params) == 0)
85 85
                     throw new \InvalidArgumentException();
86 86
                 return new EventUpdateRequest($params[0]);
87 87
         }
Please login to merge, or discard this patch.
Braces   +21 added lines, -13 removed lines patch added patch discarded remove patch
@@ -40,7 +40,9 @@  discard block
 block discarded – undo
40 40
      * @return CalDAVRequestFactory
41 41
      */
42 42
     public static function getInstance(){
43
-        if(is_null(self::$instance)) self::$instance = new CalDAVRequestFactory();
43
+        if(is_null(self::$instance)) {
44
+            self::$instance = new CalDAVRequestFactory();
45
+        }
44 46
         return self::$instance;
45 47
     }
46 48
 
@@ -61,28 +63,34 @@  discard block
 block discarded – undo
61 63
             case self::CalendarRequestType:
62 64
                 return new GetCalendarRequest();
63 65
             case self::CalendarSyncRequestType:
64
-                if(count($params) == 0 )
65
-                    throw new \InvalidArgumentException();
66
+                if(count($params) == 0 ) {
67
+                                    throw new \InvalidArgumentException();
68
+                }
66 69
                 return new CalendarSyncRequest($params[0]);
67 70
             case self::CalendarMultiGetRequestType:
68
-                if(count($params) == 0 )
69
-                    throw new \InvalidArgumentException();
71
+                if(count($params) == 0 ) {
72
+                                    throw new \InvalidArgumentException();
73
+                }
70 74
                 return new CalendarMultiGetRequest($params[0]);
71 75
             case self::CalendarQueryRequestType:
72
-                if(count($params) == 0 )
73
-                    throw new \InvalidArgumentException();
76
+                if(count($params) == 0 ) {
77
+                                    throw new \InvalidArgumentException();
78
+                }
74 79
                 return new CalendarQueryRequest($params[0]);
75 80
             case self::CalendarCreateRequestType:
76
-                if(count($params) == 0 )
77
-                    throw new \InvalidArgumentException();
81
+                if(count($params) == 0 ) {
82
+                                    throw new \InvalidArgumentException();
83
+                }
78 84
                 return new CalendarCreateRequest($params[0]);
79 85
             case self::EventCreateRequestType:
80
-                if(count($params) == 0 )
81
-                    throw new \InvalidArgumentException();
86
+                if(count($params) == 0 ) {
87
+                                    throw new \InvalidArgumentException();
88
+                }
82 89
                 return new EventCreateRequest($params[0]);
83 90
             case self::EventUpdateRequestType:
84
-                if(count($params) == 0 )
85
-                    throw new \InvalidArgumentException();
91
+                if(count($params) == 0 ) {
92
+                                    throw new \InvalidArgumentException();
93
+                }
86 94
                 return new EventUpdateRequest($params[0]);
87 95
         }
88 96
         return null;
Please login to merge, or discard this patch.
src/Facade/Requests/AbstractPropFindWebDAVRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
         ];
37 37
 
38 38
         $elements = [];
39
-        foreach( $this->properties as $val ) {
40
-            $elements[] = [  $val => ""];
39
+        foreach ($this->properties as $val) {
40
+            $elements[] = [$val => ""];
41 41
         }
42 42
         return $service->write('{DAV:}propfind',
43 43
             [
Please login to merge, or discard this patch.
src/Facade/CalDavClient.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,8 +130,7 @@
 block discarded – undo
130 130
                 'auth'    => [$this->user, $this->password],
131 131
                 'timeout' => $this->timeout
132 132
             ]);
133
-        }
134
-        catch (ClientException $ex){
133
+        } catch (ClientException $ex){
135 134
             switch($ex->getCode()){
136 135
                 case 401:
137 136
                     throw new UserUnAuthorizedException();
Please login to merge, or discard this patch.
Spacing   +39 added lines, -58 removed lines patch added patch discarded remove patch
@@ -125,15 +125,15 @@  discard block
 block discarded – undo
125 125
      * @param Request $http_request
126 126
      * @return mixed|\Psr\Http\Message\ResponseInterface
127 127
      */
128
-    private function makeRequest(Request $http_request){
129
-        try{
128
+    private function makeRequest(Request $http_request) {
129
+        try {
130 130
             return $this->client->send($http_request, [
131 131
                 'auth'    => [$this->user, $this->password],
132 132
                 'timeout' => $this->timeout
133 133
             ]);
134 134
         }
135
-        catch (ClientException $ex){
136
-            switch($ex->getCode()){
135
+        catch (ClientException $ex) {
136
+            switch ($ex->getCode()) {
137 137
                 case 401:
138 138
                     throw new UserUnAuthorizedException();
139 139
                     break;
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
 
162 162
         $res     = $http_response->hasHeader(self::DAVHeader);
163 163
         $options = [];
164
-        if($res){
164
+        if ($res) {
165 165
             $val = $http_response->getHeaderLine(self::DAVHeader);
166
-            if(!empty($val)){
166
+            if (!empty($val)) {
167 167
                 $options = explode(', ', $val);
168 168
             }
169 169
         }
@@ -177,14 +177,13 @@  discard block
 block discarded – undo
177 177
     public function getUserPrincipal()
178 178
     {
179 179
         $http_response = $this->makeRequest(
180
-            RequestFactory::createPropFindRequest
181
-            (
180
+            RequestFactory::createPropFindRequest(
182 181
                 $this->server_url,
183 182
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::PrincipalRequestType)->getContent()
184 183
             )
185 184
         );
186 185
 
187
-        return new UserPrincipalResponse($this->server_url, (string)$http_response->getBody(), $http_response->getStatusCode());
186
+        return new UserPrincipalResponse($this->server_url, (string) $http_response->getBody(), $http_response->getStatusCode());
188 187
     }
189 188
 
190 189
     /**
@@ -194,14 +193,13 @@  discard block
 block discarded – undo
194 193
     public function getCalendarHome($principal_url)
195 194
     {
196 195
         $http_response = $this->makeRequest(
197
-            RequestFactory::createPropFindRequest
198
-            (
196
+            RequestFactory::createPropFindRequest(
199 197
                 $principal_url,
200 198
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::CalendarHomeRequestType)->getContent()
201 199
             )
202 200
         );
203 201
 
204
-        return new CalendarHomesResponse($this->server_url, (string)$http_response->getBody(), $http_response->getStatusCode());
202
+        return new CalendarHomesResponse($this->server_url, (string) $http_response->getBody(), $http_response->getStatusCode());
205 203
     }
206 204
 
207 205
     /**
@@ -215,10 +213,9 @@  discard block
 block discarded – undo
215 213
         $uid           = $vo->getUID();
216 214
         $resource_name = $vo->getResourceName();
217 215
 
218
-        $resource_url  = $calendar_home_set . ($resource_name ? $resource_name : $uid);
216
+        $resource_url  = $calendar_home_set.($resource_name ? $resource_name : $uid);
219 217
         $http_response = $this->makeRequest(
220
-            RequestFactory::createMakeCalendarRequest
221
-            (
218
+            RequestFactory::createMakeCalendarRequest(
222 219
                 $resource_url,
223 220
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::CalendarCreateRequestType, [$vo])->getContent()
224 221
             )
@@ -234,14 +231,13 @@  discard block
 block discarded – undo
234 231
     public function getCalendars($calendar_home_set_url)
235 232
     {
236 233
         $http_response = $this->makeRequest(
237
-            RequestFactory::createPropFindRequest
238
-            (
234
+            RequestFactory::createPropFindRequest(
239 235
                 $calendar_home_set_url,
240 236
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::CalendarsRequestType)->getContent()
241 237
             )
242 238
         );
243 239
 
244
-        return new GetCalendarsResponse($this->server_url, (string)$http_response->getBody(), $http_response->getStatusCode());
240
+        return new GetCalendarsResponse($this->server_url, (string) $http_response->getBody(), $http_response->getStatusCode());
245 241
     }
246 242
 
247 243
     /**
@@ -251,15 +247,14 @@  discard block
 block discarded – undo
251 247
     public function getCalendar($calendar_url)
252 248
     {
253 249
         $http_response = $this->makeRequest(
254
-            RequestFactory::createPropFindRequest
255
-            (
250
+            RequestFactory::createPropFindRequest(
256 251
                 $calendar_url,
257 252
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::CalendarRequestType)->getContent(),
258 253
                 0
259 254
             )
260 255
         );
261 256
 
262
-        return new GetCalendarResponse($this->server_url, (string)$http_response->getBody(), $http_response->getStatusCode());
257
+        return new GetCalendarResponse($this->server_url, (string) $http_response->getBody(), $http_response->getStatusCode());
263 258
     }
264 259
 
265 260
 
@@ -272,14 +267,13 @@  discard block
 block discarded – undo
272 267
     {
273 268
 
274 269
         $http_response = $this->makeRequest(
275
-            RequestFactory::createReportRequest
276
-            (
270
+            RequestFactory::createReportRequest(
277 271
                 $calendar_url,
278 272
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::CalendarSyncRequestType, [$sync_token])->getContent()
279 273
             )
280 274
         );
281 275
 
282
-        return new CalendarSyncInfoResponse($this->server_url, (string)$http_response->getBody(), $http_response->getStatusCode());
276
+        return new CalendarSyncInfoResponse($this->server_url, (string) $http_response->getBody(), $http_response->getStatusCode());
283 277
     }
284 278
 
285 279
     /**
@@ -292,19 +286,17 @@  discard block
 block discarded – undo
292 286
         $uid           = $vo->getUID();
293 287
         $resource_url  = $calendar_url.$uid.self::SchedulingInformationSuffix;
294 288
         $http_response = $this->makeRequest(
295
-            RequestFactory::createPutRequest
296
-            (
289
+            RequestFactory::createPutRequest(
297 290
                 $resource_url,
298 291
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::EventCreateRequestType, [$vo])->getContent()
299 292
             )
300 293
         );
301 294
         $etag = $http_response->hasHeader(self::ETagHeader) ? $http_response->getHeaderLine(self::ETagHeader) : null;
302
-        return new EventCreatedResponse
303
-        (
295
+        return new EventCreatedResponse(
304 296
             $uid,
305 297
             $etag,
306 298
             $resource_url,
307
-            (string)$http_response->getBody(),
299
+            (string) $http_response->getBody(),
308 300
             $http_response->getStatusCode()
309 301
         );
310 302
     }
@@ -320,20 +312,18 @@  discard block
 block discarded – undo
320 312
         $uid           = $vo->getUID();
321 313
         $resource_url  = $calendar_url.$uid.self::SchedulingInformationSuffix;
322 314
         $http_response = $this->makeRequest(
323
-            RequestFactory::createPutRequest
324
-            (
315
+            RequestFactory::createPutRequest(
325 316
                 $resource_url,
326 317
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::EventUpdateRequestType, [$vo])->getContent(),
327 318
                 $etag
328 319
             )
329 320
         );
330 321
         $etag = $http_response->hasHeader(self::ETagHeader) ? $http_response->getHeaderLine(self::ETagHeader) : null;
331
-        return new EventUpdatedResponse
332
-        (
322
+        return new EventUpdatedResponse(
333 323
             $uid,
334 324
             $etag,
335 325
             $resource_url,
336
-            (string)$http_response->getBody(),
326
+            (string) $http_response->getBody(),
337 327
             $http_response->getStatusCode()
338 328
         );
339 329
     }
@@ -347,16 +337,14 @@  discard block
 block discarded – undo
347 337
     public function deleteEvent($calendar_url, $uid, $etag = null)
348 338
     {
349 339
         $http_response = $this->makeRequest(
350
-            RequestFactory::createDeleteRequest
351
-            (
340
+            RequestFactory::createDeleteRequest(
352 341
                 $calendar_url.$uid.self::SchedulingInformationSuffix,
353 342
                 $etag
354 343
             )
355 344
         );
356 345
 
357
-        return new EventDeletedResponse
358
-        (
359
-            (string)$http_response->getBody(), $http_response->getStatusCode()
346
+        return new EventDeletedResponse(
347
+            (string) $http_response->getBody(), $http_response->getStatusCode()
360 348
         );
361 349
     }
362 350
 
@@ -364,15 +352,14 @@  discard block
 block discarded – undo
364 352
      * @param string $event_url
365 353
      * @return string
366 354
      */
367
-    public function getEventVCardBy($event_url){
355
+    public function getEventVCardBy($event_url) {
368 356
         $http_response = $this->makeRequest(
369
-            RequestFactory::createGetRequest
370
-            (
357
+            RequestFactory::createGetRequest(
371 358
                 $event_url
372 359
             )
373 360
         );
374 361
 
375
-        $ical = (string)$http_response->getBody();
362
+        $ical = (string) $http_response->getBody();
376 363
         return $ical;
377 364
     }
378 365
 
@@ -384,17 +371,15 @@  discard block
 block discarded – undo
384 371
     public function getEventsBy($calendar_url, array $events_urls)
385 372
     {
386 373
         $http_response = $this->makeRequest(
387
-            RequestFactory::createReportRequest
388
-            (
374
+            RequestFactory::createReportRequest(
389 375
                 $calendar_url,
390 376
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::CalendarMultiGetRequestType, [$events_urls])->getContent()
391 377
             )
392 378
         );
393 379
 
394
-        return new ResourceCollectionResponse
395
-        (
380
+        return new ResourceCollectionResponse(
396 381
             $this->server_url,
397
-            (string)$http_response->getBody(),
382
+            (string) $http_response->getBody(),
398 383
             $http_response->getStatusCode()
399 384
         );
400 385
     }
@@ -408,17 +393,15 @@  discard block
 block discarded – undo
408 393
     {
409 394
 
410 395
         $http_response = $this->makeRequest(
411
-            RequestFactory::createReportRequest
412
-            (
396
+            RequestFactory::createReportRequest(
413 397
                 $calendar_url,
414 398
                 CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::CalendarQueryRequestType, [$filter])->getContent()
415 399
             )
416 400
         );
417 401
 
418
-        return new ResourceCollectionResponse
419
-        (
402
+        return new ResourceCollectionResponse(
420 403
             $this->server_url,
421
-            (string)$http_response->getBody(),
404
+            (string) $http_response->getBody(),
422 405
             $http_response->getStatusCode()
423 406
         );
424 407
     }
@@ -431,16 +414,14 @@  discard block
 block discarded – undo
431 414
     public function deleteCalendar($calendar_url, $etag = null)
432 415
     {
433 416
         $http_response = $this->makeRequest(
434
-            RequestFactory::createDeleteRequest
435
-            (
417
+            RequestFactory::createDeleteRequest(
436 418
                 $calendar_url,
437 419
                 $etag
438 420
             )
439 421
         );
440 422
 
441
-        return new CalendarDeletedResponse
442
-        (
443
-            $this->server_url, (string)$http_response->getBody(), $http_response->getStatusCode()
423
+        return new CalendarDeletedResponse(
424
+            $this->server_url, (string) $http_response->getBody(), $http_response->getStatusCode()
444 425
         );
445 426
     }
446 427
 }
Please login to merge, or discard this patch.