Passed
Push — master ( 8b45a0...41438c )
by Petr
07:55
created

Translations   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A kauBanWantedUser() 0 3 1
A kauTooManyTries() 0 3 1
1
<?php
2
3
namespace kalanis\kw_auth;
4
5
6
use kalanis\kw_auth\Interfaces\IKauTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_auth
12
 */
13
class Translations implements IKauTranslations
14
{
15
    /**
16
     * @return string
17
     * @codeCoverageIgnore processing bans
18
     */
19 2
    public function kauBanWantedUser(): string
20
    {
21 2
        return 'Accessing user is banned!';
22
    }
23
24
    /**
25
     * @return string
26
     * @codeCoverageIgnore processing sessions
27
     */
28
    public function kauTooManyTries(): string
29
    {
30
        return 'Too many tries!';
31
    }
32
}
33