Skip to content

Commit 36431ec

Browse files
authored
Merge pull request #1566 from phil-davis/backport-20241029
Backport various changes from master to 4.6
2 parents 986d5f3 + c98392d commit 36431ec

File tree

31 files changed

+37
-284
lines changed

31 files changed

+37
-284
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/.gitattributes export-ignore
55
/.gitignore export-ignore
66
/.php_cs.dist export-ignore
7+
/.php-cs-fixer.dist.php export-ignore
78
/CHANGELOG.md export-ignore
89
/CONTRIBUTING.md export-ignore
910
/phpstan.neon export-ignore

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
3131

3232
- name: Cache composer dependencies
33-
uses: actions/cache@v3
33+
uses: actions/cache@v4
3434
with:
3535
path: ${{ steps.composer-cache.outputs.dir }}
3636
# Use composer.json for key, if composer.lock is not committed.
@@ -93,7 +93,7 @@ jobs:
9393
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
9494

9595
- name: Cache composer dependencies
96-
uses: actions/cache@v3
96+
uses: actions/cache@v4
9797
with:
9898
path: ${{ steps.composer-cache.outputs.dir }}
9999
# Use composer.json for key, if composer.lock is not committed.
@@ -126,5 +126,5 @@ jobs:
126126
SABRE_PGSQLDSN: "pgsql:host=127.0.0.1;port=5432;dbname=sabredav_test;user=postgres;password=postgres"
127127
RUN_TEST_WITH_STREAMING_PROPFIND: "true"
128128

129-
- uses: codecov/codecov-action@v3
129+
- uses: codecov/codecov-action@v4
130130
if: matrix.coverage != 'none'

bin/googlecode_upload.py

Lines changed: 0 additions & 248 deletions
This file was deleted.

lib/CalDAV/Backend/BackendInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function deleteCalendarObject($calendarId, $objectUri);
221221
*
222222
* This default may well be good enough for personal use, and calendars
223223
* that aren't very large. But if you anticipate high usage, big calendars
224-
* or high loads, you are strongly adviced to optimize certain paths.
224+
* or high loads, you are strongly advised to optimize certain paths.
225225
*
226226
* The best way to do so is override this method and to optimize
227227
* specifically for 'common filters'.

lib/CalDAV/Backend/NotificationSupport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface NotificationSupport extends BackendInterface
3636
public function getNotificationsForPrincipal($principalUri);
3737

3838
/**
39-
* This deletes a specific notifcation.
39+
* This deletes a specific notification.
4040
*
4141
* This may be called by a client once it deems a notification handled.
4242
*

lib/CalDAV/Backend/PDO.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function getCalendarsForUser($principalUri)
196196
//$stmt2 = $this->pdo->prepare('SELECT principaluri FROM ' . $this->calendarInstancesTableName . ' WHERE access = 1 AND id = ?');
197197
//$stmt2->execute([$row['id']]);
198198

199-
// read-only is for backwards compatbility. Might go away in
199+
// read-only is for backwards compatibility. Might go away in
200200
// the future.
201201
$calendar['read-only'] = \Sabre\DAV\Sharing\Plugin::ACCESS_READ === (int) $row['access'];
202202
}
@@ -730,7 +730,7 @@ public function deleteCalendarObject($calendarId, $objectUri)
730730
*
731731
* This default may well be good enough for personal use, and calendars
732732
* that aren't very large. But if you anticipate high usage, big calendars
733-
* or high loads, you are strongly adviced to optimize certain paths.
733+
* or high loads, you are strongly advised to optimize certain paths.
734734
*
735735
* The best way to do so is override this method and to optimize
736736
* specifically for 'common filters'.

lib/CalDAV/Calendar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public function getSyncToken()
435435
* return null.
436436
*
437437
* The limit is 'suggestive'. You are free to ignore it.
438-
* TODO: RFC6578 Setion 3.7 says that the server must fail when the server
438+
* TODO: RFC6578 Section 3.7 says that the server must fail when the server
439439
* cannot truncate according to the limit, so it may not be just suggestive.
440440
*
441441
* @param string $syncToken

lib/CalDAV/Notifications/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getName()
7070
/**
7171
* Returns the etag for the notification.
7272
*
73-
* The etag must be surrounded by litteral double-quotes.
73+
* The etag must be surrounded by literal double-quotes.
7474
*
7575
* @return string
7676
*/
@@ -101,7 +101,7 @@ public function delete()
101101
/**
102102
* Returns the owner principal.
103103
*
104-
* This must be a url to a principal, or null if there's no owner
104+
* This must be an url to a principal, or null if there's no owner
105105
*
106106
* @return string|null
107107
*/

lib/CalDAV/Plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ public function beforeWriteContent($path, DAV\IFile $node, &$data, &$modified)
720720
return;
721721
}
722722

723-
// We're onyl interested in ICalendarObject nodes that are inside of a
723+
// We're only interested in ICalendarObject nodes that are inside of a
724724
// real calendar. This is to avoid triggering validation and scheduling
725725
// for non-calendars (such as an inbox).
726726
list($parent) = Uri\split($path);
@@ -913,7 +913,7 @@ protected function validateICalendar(&$data, $path, &$modified, RequestInterface
913913
}
914914

915915
/**
916-
* This method is triggered whenever a subsystem reqeuests the privileges
916+
* This method is triggered whenever a subsystem requests the privileges
917917
* that are supported on a particular node.
918918
*/
919919
public function getSupportedPrivilegeSet(INode $node, array &$supportedPrivilegeSet)

lib/CalDAV/SharingPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function propFindLate(DAV\PropFind $propFind, DAV\INode $node)
136136
}
137137

138138
/**
139-
* This method is trigged when a user attempts to update a node's
139+
* This method is triggered when a user attempts to update a node's
140140
* properties.
141141
*
142142
* A previous draft of the sharing spec stated that it was possible to use

0 commit comments

Comments
 (0)