Fix PHPDoc and signature

remotes/origin/comments-markallread-dav
Lukas Reschke 9 years ago
parent 2d7528bc64
commit a0cb52c90e
  1. 5
      apps/federation/command/syncfederationaddressbooks.php
  2. 6
      apps/federation/lib/syncfederationaddressbooks.php
  3. 2
      apps/federation/tests/lib/syncfederationaddressbookstest.php

@ -14,7 +14,7 @@ class SyncFederationAddressBooks extends Command {
private $syncService;
/**
* @param DbHandler $dbHandler
* @param \OCA\Federation\SyncFederationAddressBooks $syncService
*/
function __construct(\OCA\Federation\SyncFederationAddressBooks $syncService) {
parent::__construct();
@ -31,6 +31,7 @@ class SyncFederationAddressBooks extends Command {
/**
* @param InputInterface $input
* @param OutputInterface $output
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output) {
@ -46,5 +47,7 @@ class SyncFederationAddressBooks extends Command {
$progress->finish();
$output->writeln('');
return 0;
}
}

@ -18,12 +18,16 @@ class SyncFederationAddressBooks {
/**
* @param DbHandler $dbHandler
* @param SyncService $syncService
*/
function __construct(DbHandler $dbHandler, $syncService) {
function __construct(DbHandler $dbHandler, SyncService $syncService) {
$this->syncService = $syncService;
$this->dbHandler = $dbHandler;
}
/**
* @param \Closure $callback
*/
public function syncThemAll(\Closure $callback) {
$trustedServers = $this->dbHandler->getAllServer();

@ -63,4 +63,4 @@ class SyncFederationAddressbooksTest extends \Test\TestCase {
});
$this->assertEquals(2, count($this->callBacks));
}
}
}

Loading…
Cancel
Save