Provider::getDisplayName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 1
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
7
 * SPDX-License-Identifier: AGPL-3.0-or-later
8
 */
9
10
namespace OCA\TwoFactorGateway\Provider\Channel\WhatsApp;
11
12
use OCA\TwoFactorGateway\Provider\AProvider;
13
14
class Provider extends AProvider {
15
16
	#[\Override]
17
	public function getDisplayName(): string {
18
		return $this->l10n->t('WhatsApp verification');
19
	}
20
21
	#[\Override]
22
	public function getDescription(): string {
23
		return $this->l10n->t('Authenticate via WhatsApp');
24
	}
25
}
26