Passed
Push — master ( 96eda9...4e4eee )
by Petr
07:51
created

Translations   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Test Coverage

Coverage 55.56%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
eloc 10
c 1
b 0
f 0
dl 0
loc 61
ccs 10
cts 18
cp 0.5556
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A stCannotSaveFile() 0 3 1
A stCannotReadFile() 0 3 1
A stCannotSeekFile() 0 3 1
A stCannotCloseFile() 0 3 1
A stCannotOpenFile() 0 3 1
A stStorageNotInitialized() 0 3 1
A stCannotReadKey() 0 3 1
A stConfigurationUnavailable() 0 3 1
A stPathNotFound() 0 3 1
1
<?php
2
3
namespace kalanis\kw_storage;
4
5
6
use kalanis\kw_storage\Interfaces\IStTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_storage
12
 */
13
class Translations implements IStTranslations
14
{
15 1
    public function stCannotReadKey(): string
16
    {
17 1
        return 'Cannot read key';
18
    }
19
20 6
    public function stCannotReadFile(): string
21
    {
22 6
        return 'Cannot read file';
23
    }
24
25
    /**
26
     * @return string
27
     * @codeCoverageIgnore VolumeStream
28
     */
29
    public function stCannotOpenFile(): string
30
    {
31
        return 'Cannot open file';
32
    }
33
34
    /**
35
     * @return string
36
     * @codeCoverageIgnore VolumeStream
37
     */
38
    public function stCannotSaveFile(): string
39
    {
40
        return 'Cannot save file';
41
    }
42
43
    /**
44
     * @return string
45
     * @codeCoverageIgnore VolumeStream
46
     */
47
    public function stCannotSeekFile(): string
48
    {
49
        return 'Cannot seek in file';
50
    }
51
52
    /**
53
     * @return string
54
     * @codeCoverageIgnore VolumeStream
55
     */
56
    public function stCannotCloseFile(): string
57
    {
58
        return 'Cannot close opened file';
59
    }
60
61 1
    public function stStorageNotInitialized(): string
62
    {
63 1
        return 'Storage not initialized';
64
    }
65
66 1
    public function stPathNotFound(): string
67
    {
68 1
        return 'Path in storage not found.';
69
    }
70
71 20
    public function stConfigurationUnavailable(): string
72
    {
73 20
        return 'This configuration is not available.';
74
    }
75
}
76