Translations   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 30
ccs 12
cts 12
cp 1
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A ikbDefinedFileNotFound() 0 3 1
A ikbUnknownFormat() 0 3 1
A ikbInvalidNumOfBlocksTooMany() 0 3 1
A ikbBadIpParsingNoDelimiter() 0 3 1
A ikbUnknownType() 0 3 1
A ikbInvalidNumOfBlocksAmount() 0 3 1
1
<?php
2
3
namespace kalanis\kw_bans;
4
5
6
use kalanis\kw_bans\Interfaces\IKBTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_bans
12
 */
13
class Translations implements IKBTranslations
14
{
15 1
    public function ikbUnknownType(): string
16
    {
17 1
        return 'Unknown ban type';
18
    }
19
20 1
    public function ikbUnknownFormat(): string
21
    {
22 1
        return 'Unknown datasource format';
23
    }
24
25 1
    public function ikbBadIpParsingNoDelimiter(): string
26
    {
27 1
        return 'Delimiter for parsing not set';
28
    }
29
30 1
    public function ikbDefinedFileNotFound(string $fileName): string
31
    {
32 1
        return 'Defined file was not found';
33
    }
34
35 1
    public function ikbInvalidNumOfBlocksTooMany(string $knownIp): string
36
    {
37 1
        return 'Invalid IP, too much blocks - ' . $knownIp;
38
    }
39
40 1
    public function ikbInvalidNumOfBlocksAmount(string $knownIp): string
41
    {
42 1
        return 'Invalid IP, bad amount of blocks - ' . $knownIp;
43
    }
44
}
45