mirror of https://github.com/nextcloud/contacts
Fix syntax
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
73823f4507
commit
8cd975f325
|
@ -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'),
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,8 +71,8 @@ class DetailsProvider implements IProvider {
|
|||
* @return array
|
||||
* @since 16.0.0
|
||||
*/
|
||||
protected function getAddressBooksUris(): Array {
|
||||
$result = array();
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ use OCP\L10N\IFactory;
|
|||
use OCP\Util;
|
||||
|
||||
class PageController extends Controller {
|
||||
|
||||
protected $appName;
|
||||
|
||||
/** @var IConfig */
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -47,6 +47,7 @@
|
|||
"debounce": "^1.2.0",
|
||||
"downloadjs": "^1.4.7",
|
||||
"ical.js": "^1.4.0",
|
||||
"moment": "^2.27.0",
|
||||
"p-limit": "^2.3.0",
|
||||
"p-queue": "^6.4.0",
|
||||
"qr-image": "^3.2.0",
|
||||
|
|
|
@ -9,4 +9,5 @@ if (\OCP\Util::isIe()) {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<?php
|
||||
} ?>
|
||||
|
|
|
@ -218,5 +218,4 @@ class DetailsProviderTest extends Base {
|
|||
|
||||
$this->provider->process($entry);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -31,9 +31,7 @@ use OCP\IRequest;
|
|||
use OCP\L10N\IFactory;
|
||||
use ChristophWurst\Nextcloud\Testing\TestCase;
|
||||
|
||||
|
||||
class PageControllerTest extends TestCase {
|
||||
|
||||
private $controller;
|
||||
|
||||
/** @var IRequest|MockObject */
|
||||
|
|
Loading…
Reference in New Issue