summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-09 17:25:30 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-09 17:30:29 +0200
commit8cd975f325b3fcc8deb3cb53f4af56eab453eeb0 (patch)
tree2312f01d889f03a60ddd890e5bbfcd533c619680 /lib
parent73823f4507c7e139ad45bef90b31a0d68e7aea45 (diff)
Fix syntax
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/AppInfo/Application.php5
-rw-r--r--lib/ContactsMenu/Providers/DetailsProvider.php10
-rw-r--r--lib/Controller/PageController.php3
3 files changed, 7 insertions, 11 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 3f382cf9..b1952922 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -21,14 +21,14 @@
*
*/
namespace OCA\Contacts\AppInfo;
+
use OCP\AppFramework\App;
use OCP\IURLGenerator;
use OCP\IL10N;
use OCP\INavigationManager;
class Application extends App {
-
- const APP_ID = 'contacts';
+ public const APP_ID = 'contacts';
public function __construct() {
parent::__construct(self::APP_ID);
@@ -65,6 +65,5 @@ class Application extends App {
// navigation or on the settings page of your app
'name' => $l10n->t('Contacts'),
]);
-
}
}
diff --git a/lib/ContactsMenu/Providers/DetailsProvider.php b/lib/ContactsMenu/Providers/DetailsProvider.php
index f9c72dc3..1cc7fdc9 100644
--- a/lib/ContactsMenu/Providers/DetailsProvider.php
+++ b/lib/ContactsMenu/Providers/DetailsProvider.php
@@ -67,13 +67,13 @@ class DetailsProvider implements IProvider {
/**
* Return a list of the user's addressbooks unique uris
- *
+ *
* @return array
* @since 16.0.0
*/
- protected function getAddressBooksUris(): Array {
- $result = array();
- foreach($this->manager->getUserAddressbooks() as $addressBook) {
+ protected function getAddressBooksUris(): array {
+ $result = [];
+ foreach ($this->manager->getUserAddressbooks() as $addressBook) {
$result[$addressBook->getKey()] = $addressBook->getUri();
}
@@ -114,7 +114,6 @@ class DetailsProvider implements IProvider {
// We need $this->manager->getAddressbooksUris() to add this function
$ncVersion = $this->config->getSystemValue('version', '0.0.0');
if (version_compare($ncVersion, '16.0.0', '>=')) {
-
$addressBookUri = $this->getAddressBookUri($entry->getProperty('addressbook-key'));
$iconUrl = $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/info.svg'));
@@ -128,5 +127,4 @@ class DetailsProvider implements IProvider {
$entry->addAction($action);
}
}
-
}
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index e52dfbcd..0ea64fd3 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -32,11 +32,10 @@ use OCP\L10N\IFactory;
use OCP\Util;
class PageController extends Controller {
-
protected $appName;
/** @var IConfig */
- private $config;
+ private $config;
/** @var IInitialStateService */
private $initialStateService;