Provider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 5
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A getDisplayName() 0 3 1
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