diff --git a/apps/dav/lib/DAV/SystemPrincipalBackend.php b/apps/dav/lib/DAV/SystemPrincipalBackend.php index 8c19e92499..7c5bdcab01 100644 --- a/apps/dav/lib/DAV/SystemPrincipalBackend.php +++ b/apps/dav/lib/DAV/SystemPrincipalBackend.php @@ -163,7 +163,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 20bac8aa9f..cbfc2e5549 100644 --- a/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php +++ b/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php @@ -199,7 +199,7 @@ XML; 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 debc923806..0c0f36d030 100644 --- a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php +++ b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php @@ -80,7 +80,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() { diff --git a/apps/files/js/detailsview.js b/apps/files/js/detailsview.js index a896e84fdc..7bfc3d5ad7 100644 --- a/apps/files/js/detailsview.js +++ b/apps/files/js/detailsview.js @@ -78,9 +78,6 @@ this._detailFileInfoViews = []; this._dirty = true; - - // uncomment to add some dummy tabs for testing - //this._addTestTabs(); }, _onClose: function(event) { @@ -102,21 +99,6 @@ this.selectTab(tabId); }, - _addTestTabs: function() { - for (var j = 0; j < 2; j++) { - var testView = new OCA.Files.DetailTabView({id: 'testtab' + j}); - testView.index = j; - testView.getLabel = function() { return 'Test tab ' + this.index; }; - testView.render = function() { - this.$el.empty(); - for (var i = 0; i < 100; i++) { - this.$el.append('