diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-01-26 17:27:58 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-01-26 17:27:58 +0100 |
commit | a0cb52c90e4bae5f5ca7b78c8619888a9014edb7 (patch) | |
tree | c4b857e831c6f2714aba90edd85c5da573301509 | |
parent | 2d7528bc64640240452711891ce0b339935797c0 (diff) | |
download | nextcloud-server-a0cb52c90e4bae5f5ca7b78c8619888a9014edb7.tar.gz nextcloud-server-a0cb52c90e4bae5f5ca7b78c8619888a9014edb7.zip |
Fix PHPDoc and signature
-rw-r--r-- | apps/federation/command/syncfederationaddressbooks.php | 5 | ||||
-rw-r--r-- | apps/federation/lib/syncfederationaddressbooks.php | 6 | ||||
-rw-r--r-- | apps/federation/tests/lib/syncfederationaddressbookstest.php | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/apps/federation/command/syncfederationaddressbooks.php b/apps/federation/command/syncfederationaddressbooks.php index aff54fa0901..61703d9d4e4 100644 --- a/apps/federation/command/syncfederationaddressbooks.php +++ b/apps/federation/command/syncfederationaddressbooks.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; } } diff --git a/apps/federation/lib/syncfederationaddressbooks.php b/apps/federation/lib/syncfederationaddressbooks.php index f9f402ea031..86fc4179dc4 100644 --- a/apps/federation/lib/syncfederationaddressbooks.php +++ b/apps/federation/lib/syncfederationaddressbooks.php @@ -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(); diff --git a/apps/federation/tests/lib/syncfederationaddressbookstest.php b/apps/federation/tests/lib/syncfederationaddressbookstest.php index 6932c1e1360..770896535fa 100644 --- a/apps/federation/tests/lib/syncfederationaddressbookstest.php +++ b/apps/federation/tests/lib/syncfederationaddressbookstest.php @@ -63,4 +63,4 @@ class SyncFederationAddressbooksTest extends \Test\TestCase { }); $this->assertEquals(2, count($this->callBacks)); } -}
\ No newline at end of file +} |