Fix syntax

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-07-09 17:25:30 +02:00
parent 73823f4507
commit 8cd975f325
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
8 changed files with 531 additions and 1540 deletions

View File

@ -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'),
]);
}
}

View File

@ -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);
}
}
}

View File

@ -32,7 +32,6 @@ use OCP\L10N\IFactory;
use OCP\Util;
class PageController extends Controller {
protected $appName;
/** @var IConfig */

1930
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -9,4 +9,5 @@ if (\OCP\Util::isIe()) {
</div>
</div>
<?php } ?>
<?php
} ?>

View File

@ -218,5 +218,4 @@ class DetailsProviderTest extends Base {
$this->provider->process($entry);
}
}

View File

@ -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 */