diff --git a/apps/federation/command/syncfederationaddressbooks.php b/apps/federation/command/syncfederationaddressbooks.php
index aff54fa090187ee8c12b93408e20b0dc95a66730..61703d9d4e4657ff2efbaed01265e8233c00bdc7 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 f9f402ea03176ad17a444732f54b6fd4c24965fd..86fc4179dc4ac3a558c8fc37f63abfbdd0559199 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 6932c1e1360533b2c22e14714d54c330dde0391f..770896535faa61b526d2bd7b07bad75e79dd876d 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
+}