Passed
Branch master (7a2f1a)
by Petr
03:10
created

Translations   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 10
eloc 11
c 1
b 0
f 0
dl 0
loc 50
ccs 20
cts 20
cp 1
rs 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A paCannotCreateUserDir() 0 3 1
A paCannotDetermineUserDir() 0 3 1
A paCannotAccessWantedDir() 0 3 1
A paCannotCreateDescDir() 0 3 1
A paUserNameContainsChars() 0 3 1
A paCannotCreateThumbDir() 0 3 1
A paUserNameIsShort() 0 3 1
A paUserNameNotDefined() 0 3 1
A paCannotWriteIntoDir() 0 3 1
A paNoDirectoryDelimiterSet() 0 3 1
1
<?php
2
3
namespace kalanis\kw_paths;
4
5
6
use kalanis\kw_paths\Interfaces\IPATranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_paths
12
 * Translations
13
 */
14
class Translations implements IPATranslations
15
{
16 1
    public function paCannotCreateDescDir(): string
17
    {
18 1
        return 'Cannot create description dir';
19
    }
20
21 1
    public function paCannotCreateThumbDir(): string
22
    {
23 1
        return 'Cannot create thumbnail dir';
24
    }
25
26 2
    public function paCannotAccessWantedDir(): string
27
    {
28 2
        return 'Cannot access wanted directory!';
29
    }
30
31 2
    public function paCannotWriteIntoDir(): string
32
    {
33 2
        return 'Cannot write into that directory!';
34
    }
35
36 1
    public function paUserNameIsShort(): string
37
    {
38 1
        return 'Username is short!';
39
    }
40
41 1
    public function paUserNameContainsChars(): string
42
    {
43 1
        return 'Username contains unsupported characters!';
44
    }
45
46 1
    public function paUserNameNotDefined(): string
47
    {
48 1
        return 'Necessary user name is not defined!';
49
    }
50
51 4
    public function paCannotDetermineUserDir(): string
52
    {
53 4
        return 'Cannot determine user dir!';
54
    }
55
56 1
    public function paCannotCreateUserDir(): string
57
    {
58 1
        return 'Cannot create user dir!';
59
    }
60
61 2
    public function paNoDirectoryDelimiterSet(): string
62
    {
63 2
        return 'Cannot create user dir!';
64
    }
65
}
66