Passed
Push — master ( 141183...2b56eb )
by Petr
08:03
created

Translations::kauPassFileNotSave()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace kalanis\kw_auth;
4
5
6
use kalanis\kw_auth\Interfaces\IKATranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_auth
12
 */
13
class Translations implements IKATranslations
14
{
15 1
    public function kauPassFileNotFound(string $path): string
16
    {
17 1
        return 'File with passwords not found in preselect path';
18
    }
19
20 2
    public function kauPassFileNotSave(string $path): string
21
    {
22 2
        return 'File with passwords cannot be saved in preselect path';
23
    }
24
25 4
    public function kauPassMustBeSet(): string
26
    {
27 4
        return 'You must set the password to check!';
28
    }
29
30 4
    public function kauPassMissParam(): string
31
    {
32 4
        return 'Missing necessary params to determine the password';
33
    }
34
35 2
    public function kauPassLoginExists(): string
36
    {
37 2
        return 'Login name already exists!';
38
    }
39
40 1
    public function kauLockSystemNotSet(): string
41
    {
42 1
        return 'Lock system not set';
43
    }
44
45 1
    public function kauAuthAlreadyOpen(): string
46
    {
47 1
        return 'Someone works with authentication. Please try again a bit later.';
48
    }
49
50 6
    public function kauGroupMissParam(): string
51
    {
52 6
        return 'Missing necessary params to determine the group';
53
    }
54
55 2
    public function kauGroupHasMembers(): string
56
    {
57 2
        return 'Group to removal still has members. Remove them first.';
58
    }
59
60
    /**
61
     * @return string
62
     * @codeCoverageIgnore only on really specific installations
63
     */
64
    public function kauHashFunctionNotFound(): string
65
    {
66
        return 'Cannot find function for making hashes!';
67
    }
68
69
    /**
70
     * @return string
71
     * @codeCoverageIgnore processing bans
72
     */
73
    public function kauBanWantedUser(): string
74
    {
75
        return 'Accessing user is banned!';
76
    }
77
78
    /**
79
     * @return string
80
     * @codeCoverageIgnore processing sessions
81
     */
82
    public function kauTooManyTries(): string
83
    {
84
        return 'Too many tries!';
85
    }
86
}
87