Test Failed
Push — main ( a7121c...c8394f )
by Rafael
91:23
created
public/htdocs/includes/sabre/sabre/dav/lib/CalDAV/Schedule/Plugin.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -270,20 +270,20 @@  discard block
 block discarded – undo
270 270
             // old property to a different namespace.
271 271
             $availProp = '{' . self::NS_CALDAV . '}calendar-availability';
272 272
             $subPropFind = new PropFind(
273
-                 $propFind->getPath(),
274
-                 [$availProp]
275
-             );
273
+                    $propFind->getPath(),
274
+                    [$availProp]
275
+                );
276 276
 
277 277
             $this->server->getPropertiesByNode(
278
-                 $subPropFind,
279
-                 $node
280
-             );
278
+                    $subPropFind,
279
+                    $node
280
+                );
281 281
 
282 282
             $propFind->set(
283
-                 '{http://calendarserver.org/ns/}calendar-availability',
284
-                 $subPropFind->get($availProp),
285
-                 $subPropFind->getStatus($availProp)
286
-             );
283
+                    '{http://calendarserver.org/ns/}calendar-availability',
284
+                    $subPropFind->get($availProp),
285
+                    $subPropFind->getStatus($availProp)
286
+                );
287 287
         });
288 288
     }
289 289
 
@@ -434,9 +434,9 @@  discard block
 block discarded – undo
434 434
             $principalUri,
435 435
             [
436 436
                 '{DAV:}principal-URL',
437
-                 $caldavNS . 'calendar-home-set',
438
-                 $caldavNS . 'schedule-inbox-URL',
439
-                 $caldavNS . 'schedule-default-calendar-URL',
437
+                    $caldavNS . 'calendar-home-set',
438
+                    $caldavNS . 'schedule-inbox-URL',
439
+                    $caldavNS . 'schedule-default-calendar-URL',
440 440
                 '{http://sabredav.org/ns}email-address',
441 441
             ]
442 442
         );
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             $principalUrl = $node->getPrincipalUrl();
200 200
 
201 201
             // schedule-outbox-URL property
202
-            $propFind->handle('{' . self::NS_CALDAV . '}schedule-outbox-URL', function () use ($principalUrl, $caldavPlugin) {
202
+            $propFind->handle('{' . self::NS_CALDAV . '}schedule-outbox-URL', function() use ($principalUrl, $caldavPlugin) {
203 203
                 $calendarHomePath = $caldavPlugin->getCalendarHomeForPrincipal($principalUrl);
204 204
                 if (!$calendarHomePath) {
205 205
                     return null;
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                 return new LocalHref($outboxPath);
210 210
             });
211 211
             // schedule-inbox-URL property
212
-            $propFind->handle('{' . self::NS_CALDAV . '}schedule-inbox-URL', function () use ($principalUrl, $caldavPlugin) {
212
+            $propFind->handle('{' . self::NS_CALDAV . '}schedule-inbox-URL', function() use ($principalUrl, $caldavPlugin) {
213 213
                 $calendarHomePath = $caldavPlugin->getCalendarHomeForPrincipal($principalUrl);
214 214
                 if (!$calendarHomePath) {
215 215
                     return null;
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                 return new LocalHref($inboxPath);
220 220
             });
221 221
 
222
-            $propFind->handle('{' . self::NS_CALDAV . '}schedule-default-calendar-URL', function () use ($principalUrl, $caldavPlugin) {
222
+            $propFind->handle('{' . self::NS_CALDAV . '}schedule-default-calendar-URL', function() use ($principalUrl, $caldavPlugin) {
223 223
                 // We don't support customizing this property yet, so in the
224 224
                 // meantime we just grab the first calendar in the home-set.
225 225
                 $calendarHomePath = $caldavPlugin->getCalendarHomeForPrincipal($principalUrl);
@@ -259,13 +259,13 @@  discard block
 block discarded – undo
259 259
 
260 260
             // The server currently reports every principal to be of type
261 261
             // 'INDIVIDUAL'
262
-            $propFind->handle('{' . self::NS_CALDAV . '}calendar-user-type', function () {
262
+            $propFind->handle('{' . self::NS_CALDAV . '}calendar-user-type', function() {
263 263
                 return 'INDIVIDUAL';
264 264
             });
265 265
         }
266 266
 
267 267
         // Mapping the old property to the new property.
268
-        $propFind->handle('{http://calendarserver.org/ns/}calendar-availability', function () use ($propFind, $node) {
268
+        $propFind->handle('{http://calendarserver.org/ns/}calendar-availability', function() use ($propFind, $node) {
269 269
             // In case it wasn't clear, the only difference is that we map the
270 270
             // old property to a different namespace.
271 271
             $availProp = '{' . self::NS_CALDAV . '}calendar-availability';
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     public function propPatch($path, PropPatch $propPatch)
296 296
     {
297 297
         // Mapping the old property to the new property.
298
-        $propPatch->handle('{http://calendarserver.org/ns/}calendar-availability', function ($value) use ($path) {
298
+        $propPatch->handle('{http://calendarserver.org/ns/}calendar-availability', function($value) use ($path) {
299 299
             $availProp = '{' . self::NS_CALDAV . '}calendar-availability';
300 300
             $subPropPatch = new PropPatch([$availProp => $value]);
301 301
             $this->server->emit('propPatch', [$path, $subPropPatch]);
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
                 'time-range' => null,
920 920
             ]);
921 921
 
922
-            $calObjects = array_map(function ($url) use ($node) {
922
+            $calObjects = array_map(function($url) use ($node) {
923 923
                 $obj = $node->getChild($url)->get();
924 924
 
925 925
                 return $obj;
Please login to merge, or discard this patch.
public/htdocs/includes/sabre/sabre/dav/lib/CalDAV/SharingPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     public function propFindEarly(DAV\PropFind $propFind, DAV\INode $node)
102 102
     {
103 103
         if ($node instanceof ISharedCalendar) {
104
-            $propFind->handle('{' . Plugin::NS_CALENDARSERVER . '}invite', function () use ($node) {
104
+            $propFind->handle('{' . Plugin::NS_CALENDARSERVER . '}invite', function() use ($node) {
105 105
                 return new Xml\Property\Invite(
106 106
                     $node->getInvites()
107 107
                 );
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                         break;
130 130
                 }
131 131
             }
132
-            $propFind->handle('{' . Plugin::NS_CALENDARSERVER . '}allowed-sharing-modes', function () {
132
+            $propFind->handle('{' . Plugin::NS_CALENDARSERVER . '}allowed-sharing-modes', function() {
133 133
                 return new Xml\Property\AllowedSharingModes(true, false);
134 134
             });
135 135
         }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         }
157 157
 
158 158
         if (\Sabre\DAV\Sharing\Plugin::ACCESS_SHAREDOWNER === $node->getShareAccess() || \Sabre\DAV\Sharing\Plugin::ACCESS_NOTSHARED === $node->getShareAccess()) {
159
-            $propPatch->handle('{DAV:}resourcetype', function ($value) use ($node) {
159
+            $propPatch->handle('{DAV:}resourcetype', function($value) use ($node) {
160 160
                 if ($value->is('{' . Plugin::NS_CALENDARSERVER . '}shared-owner')) {
161 161
                     return false;
162 162
                 }
Please login to merge, or discard this patch.
public/htdocs/includes/sabre/sabre/dav/lib/CalDAV/Notifications/Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             $principalUrl = $node->getPrincipalUrl();
89 89
 
90 90
             // notification-URL property
91
-            $propFind->handle('{' . self::NS_CALENDARSERVER . '}notification-URL', function () use ($principalUrl, $caldavPlugin) {
91
+            $propFind->handle('{' . self::NS_CALENDARSERVER . '}notification-URL', function() use ($principalUrl, $caldavPlugin) {
92 92
                 $notificationPath = $caldavPlugin->getCalendarHomeForPrincipal($principalUrl) . '/notifications/';
93 93
 
94 94
                 return new DAV\Xml\Property\Href($notificationPath);
Please login to merge, or discard this patch.
public/htdocs/includes/sabre/sabre/dav/lib/CalDAV/ICSExportPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $this->server = $server;
66 66
         $server->on('method:GET', [$this, 'httpGet'], 90);
67
-        $server->on('browserButtonActions', function ($path, $node, &$actions) {
67
+        $server->on('browserButtonActions', function($path, $node, &$actions) {
68 68
             if ($node instanceof ICalendar) {
69 69
                 $actions .= '<a href="' . htmlspecialchars($path, ENT_QUOTES, 'UTF-8') . '?export"><span class="oi" data-glyph="calendar"></span></a>';
70 70
             }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             // queryResult is just a list of base urls. We need to prefix the
204 204
             // calendar path.
205 205
             $queryResult = array_map(
206
-                function ($item) use ($path) {
206
+                function($item) use ($path) {
207 207
                     return $path . '/' . $item;
208 208
                 },
209 209
                 $queryResult
Please login to merge, or discard this patch.
public/htdocs/includes/sabre/sabre/dav/lib/CalDAV/Backend/PDO.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
             'size' => (int) $row['size'],
469 469
             'calendardata' => $row['calendardata'],
470 470
             'component' => strtolower($row['componenttype']),
471
-         ];
471
+            ];
472 472
     }
473 473
 
474 474
     /**
@@ -1256,7 +1256,7 @@  discard block
 block discarded – undo
1256 1256
             'lastmodified' => $row['lastmodified'],
1257 1257
             'etag' => '"' . $row['etag'] . '"',
1258 1258
             'size' => (int) $row['size'],
1259
-         ];
1259
+            ];
1260 1260
     }
1261 1261
 
1262 1262
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
         $supportedProperties = array_keys($this->propertyMap);
301 301
         $supportedProperties[] = '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-calendar-transp';
302 302
 
303
-        $propPatch->handle($supportedProperties, function ($mutations) use ($calendarId, $instanceId) {
303
+        $propPatch->handle($supportedProperties, function($mutations) use ($calendarId, $instanceId) {
304 304
             $newValues = [];
305 305
             foreach ($mutations as $propertyName => $propertyValue) {
306 306
                 switch ($propertyName) {
@@ -1185,7 +1185,7 @@  discard block
 block discarded – undo
1185 1185
         $supportedProperties = array_keys($this->subscriptionPropertyMap);
1186 1186
         $supportedProperties[] = '{http://calendarserver.org/ns/}source';
1187 1187
 
1188
-        $propPatch->handle($supportedProperties, function ($mutations) use ($subscriptionId) {
1188
+        $propPatch->handle($supportedProperties, function($mutations) use ($subscriptionId) {
1189 1189
             $newValues = [];
1190 1190
 
1191 1191
             foreach ($mutations as $propertyName => $propertyValue) {
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/CalDAV/Backend/AbstractBackend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function getMultipleCalendarObjects($calendarId, array $uris)
52 52
     {
53
-        return array_map(function ($uri) use ($calendarId) {
53
+        return array_map(function($uri) use ($calendarId) {
54 54
             return $this->getCalendarObject($calendarId, $uri);
55 55
         }, $uris);
56 56
     }
Please login to merge, or discard this patch.
public/htdocs/includes/sabre/sabre/dav/lib/CalDAV/Backend/SimplePDO.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
             'calendarid' => $calendarId,
213 213
             'size' => strlen($row['calendardata']),
214 214
             'calendardata' => $row['calendardata'],
215
-         ];
215
+            ];
216 216
     }
217 217
 
218 218
     /**
Please login to merge, or discard this patch.
public/htdocs/includes/sabre/sabre/uri/lib/functions.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
     }
200 200
 
201 201
     return
202
-         $result + [
202
+            $result + [
203 203
             'scheme' => null,
204 204
             'host' => null,
205 205
             'path' => null,
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     }
32 32
 
33 33
     $base = parse($basePath);
34
-    $pick = function ($part) use ($base, $delta) {
34
+    $pick = function($part) use ($base, $delta) {
35 35
         if ($delta[$part]) {
36 36
             return $delta[$part];
37 37
         } elseif ($base[$part]) {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     // uriencode them first.
188 188
     $uri = preg_replace_callback(
189 189
         '/[^[:ascii:]]/u',
190
-        function ($matches) {
190
+        function($matches) {
191 191
             return rawurlencode($matches[0]);
192 192
         },
193 193
         $uri
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     // uriencode them first.
304 304
     $uri = preg_replace_callback(
305 305
         '/[^[:ascii:]]/u',
306
-        function ($matches) {
306
+        function($matches) {
307 307
             return rawurlencode($matches[0]);
308 308
         },
309 309
         $uri
Please login to merge, or discard this patch.
public/htdocs/includes/sabre/sabre/xml/lib/Service.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,10 +244,10 @@
 block discarded – undo
244 244
     {
245 245
         list($namespace) = self::parseClarkNotation($elementName);
246 246
 
247
-        $this->elementMap[$elementName] = function (Reader $reader) use ($className, $namespace) {
247
+        $this->elementMap[$elementName] = function(Reader $reader) use ($className, $namespace) {
248 248
             return \Sabre\Xml\Deserializer\valueObject($reader, $className, $namespace);
249 249
         };
250
-        $this->classMap[$className] = function (Writer $writer, $valueObject) use ($namespace) {
250
+        $this->classMap[$className] = function(Writer $writer, $valueObject) use ($namespace) {
251 251
             return \Sabre\Xml\Serializer\valueObject($writer, $valueObject, $namespace);
252 252
         };
253 253
         $this->valueObjectMap[$className] = $elementName;
Please login to merge, or discard this patch.