summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-11-07 16:18:40 +0100
committerGitHub <noreply@github.com>2017-11-07 16:18:40 +0100
commitf55732a18facfe52167e346a8aa40cfc66707fa0 (patch)
tree50d8e2fc1d9b222d55d88d4aa7bc76ba971fe50c /apps/dav
parent8566f8b8ee421ae1549e988c92c494deaf2829c2 (diff)
parent5445b1ff172d5186530ab0352ac35cb028127312 (diff)
downloadnextcloud-server-f55732a18facfe52167e346a8aa40cfc66707fa0.tar.gz
nextcloud-server-f55732a18facfe52167e346a8aa40cfc66707fa0.zip
Merge pull request #7075 from nextcloud/remove-unused-variables
Remove unused variables
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/DAV/SystemPrincipalBackend.php2
-rw-r--r--apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php2
-rw-r--r--apps/dav/tests/unit/CardDAV/SyncServiceTest.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/DAV/SystemPrincipalBackend.php b/apps/dav/lib/DAV/SystemPrincipalBackend.php
index 5b3346cf496..e3b9302886e 100644
--- a/apps/dav/lib/DAV/SystemPrincipalBackend.php
+++ b/apps/dav/lib/DAV/SystemPrincipalBackend.php
@@ -164,7 +164,7 @@ class SystemPrincipalBackend extends AbstractBackend {
* @return array
*/
function getGroupMembership($principal) {
- list($prefix, $name) = \Sabre\Uri\split($principal);
+ list($prefix, ) = \Sabre\Uri\split($principal);
if ($prefix === 'principals/system') {
$principal = $this->getPrincipalByPath($principal);
diff --git a/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php b/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php
index 35d86fbf34b..30cf768feab 100644
--- a/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php
+++ b/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php
@@ -201,7 +201,7 @@ XML;
</nc:calendar-search>
XML;
- $result = $this->parse($xml);
+ $this->parse($xml);
}
/**
diff --git a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
index a7026cfb346..1ca27d61ce4 100644
--- a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
+++ b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
@@ -81,7 +81,7 @@ class SyncServiceTest extends TestCase {
$logger = $this->getMockBuilder(ILogger::class)->disableOriginalConstructor()->getMock();
$accountManager = $this->getMockBuilder(AccountManager::class)->disableOriginalConstructor()->getMock();
$ss = new SyncService($backend, $userManager, $logger, $accountManager);
- $book = $ss->ensureSystemAddressBookExists('principals/users/adam', 'contacts', []);
+ $ss->ensureSystemAddressBookExists('principals/users/adam', 'contacts', []);
}
public function testUpdateAndDeleteUser() {