@@ -396,7 +396,7 @@ |
||
396 | 396 | |
397 | 397 | /** |
398 | 398 | * @internal implements Countable |
399 | - * @return int|null |
|
399 | + * @return integer |
|
400 | 400 | */ |
401 | 401 | public function count() { |
402 | 402 | if (!isset($this->_count)) { |
@@ -10,16 +10,6 @@ |
||
10 | 10 | |
11 | 11 | namespace OCA\Contacts; |
12 | 12 | |
13 | -use Sabre\VObject, |
|
14 | - OCP\AppFramework, |
|
15 | - OCA\Contacts\Controller\AddressBookController, |
|
16 | - OCA\Contacts\Controller\BackendController, |
|
17 | - OCA\Contacts\Controller\GroupController, |
|
18 | - OCA\Contacts\Controller\ContactController, |
|
19 | - OCA\Contacts\Controller\ContactPhotoController, |
|
20 | - OCA\Contacts\Controller\SettingsController, |
|
21 | - OCA\Contacts\Controller\ImportController; |
|
22 | - |
|
23 | 13 | /** |
24 | 14 | * This class manages our app actions |
25 | 15 | * |
@@ -50,6 +50,9 @@ |
||
50 | 50 | // returns the probability that the file matchs the current format |
51 | 51 | abstract function getFormatMatch($file); |
52 | 52 | |
53 | + /** |
|
54 | + * @param \SimpleXMLElement $xml_config |
|
55 | + */ |
|
53 | 56 | public function setConfig($xml_config) { |
54 | 57 | $this->configContent = $xml_config; |
55 | 58 | } |
@@ -11,7 +11,6 @@ |
||
11 | 11 | namespace OCA\Contacts; |
12 | 12 | |
13 | 13 | use OCP\AppFramework\App as MainApp; |
14 | -use OCP\AppFramework\Http; |
|
15 | 14 | use OCP\AppFramework\IAppContainer; |
16 | 15 | use OCA\Contacts\Middleware\Http as HttpMiddleware; |
17 | 16 | use OCA\Contacts\Controller\PageController; |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | /** |
75 | 75 | * @brief get all the preferences for the addressbook |
76 | - * @return SimpleXml |
|
76 | + * @return \SimpleXMLElement|null |
|
77 | 77 | */ |
78 | 78 | public function getType($typeName) { |
79 | 79 | $path = __DIR__ . "/../formats/import_" . $typeName . "_connector.xml"; |