Passed
Push — master ( fba3db...2b14a7 )
by Petr
03:12
created

Translations   A

Complexity

Total Complexity 20

Size/Duplication

Total Lines 124
Duplicated Lines 0 %

Test Coverage

Coverage 75%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 21
c 2
b 0
f 0
dl 0
loc 124
ccs 30
cts 40
cp 0.75
rs 10
wmc 20

20 Methods

Rating   Name   Duplication   Size   Complexity  
A flCannotSaveFile() 0 3 1
A flCannotProcessNode() 0 3 1
A flCannotLoadFile() 0 3 1
A flCannotCreateDir() 0 3 1
A flNoProcessDirSet() 0 3 1
A flCannotMoveFile() 0 3 1
A flCannotReadDir() 0 3 1
A flNoProcessNodeSet() 0 3 1
A flCannotWriteFile() 0 3 1
A flNoProcessFileSet() 0 3 1
A flCannotOpenFile() 0 3 1
A flCannotRemoveDir() 0 3 1
A flCannotCopyFile() 0 3 1
A flCannotGetSize() 0 3 1
A flNoAvailableClasses() 0 3 1
A flCannotRemoveFile() 0 3 1
A flNoDirectoryDelimiterSet() 0 3 1
A flCannotGetFilePart() 0 3 1
A flCannotCopyDir() 0 3 1
A flCannotMoveDir() 0 3 1
1
<?php
2
3
namespace kalanis\kw_files;
4
5
6
use kalanis\kw_files\Interfaces\IFLTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_files
12
 * Translations
13
 */
14
class Translations implements IFLTranslations
15
{
16 4
    public function flCannotProcessNode(string $name): string
17
    {
18 4
        return 'Cannot process wanted path.';
19
    }
20
21 14
    public function flCannotLoadFile(string $fileName): string
22
    {
23 14
        return 'Cannot load wanted file.';
24
    }
25
26 5
    public function flCannotSaveFile(string $fileName): string
27
    {
28 5
        return 'Cannot save wanted file.';
29
    }
30
31
    /**
32
     * @param string $fileName
33
     * @return string
34
     * @codeCoverageIgnore failing streams
35
     */
36
    public function flCannotOpenFile(string $fileName): string
37
    {
38
        return 'Cannot open wanted file.';
39
    }
40
41
    /**
42
     * @param string $fileName
43
     * @return string
44
     * @codeCoverageIgnore failing streams
45
     */
46
    public function flCannotWriteFile(string $fileName): string
47
    {
48
        return 'Cannot write wanted file.';
49
    }
50
51
    /**
52
     * @param string $fileName
53
     * @return string
54
     * @codeCoverageIgnore failing streams
55
     */
56
    public function flCannotGetFilePart(string $fileName): string
57
    {
58
        return 'Cannot extract part of content';
59
    }
60
61
    /**
62
     * @param string $fileName
63
     * @return string
64
     * @codeCoverageIgnore failing streams
65
     */
66
    public function flCannotGetSize(string $fileName): string
67
    {
68
        return 'Cannot copy streams, cannot get file size';
69
    }
70
71 4
    public function flCannotCopyFile(string $sourceFileName, string $destFileName): string
72
    {
73 4
        return 'Cannot copy file to destination';
74
    }
75
76 1
    public function flCannotMoveFile(string $sourceFileName, string $destFileName): string
77
    {
78 1
        return 'Cannot move file to destination';
79
    }
80
81 2
    public function flCannotRemoveFile(string $fileName): string
82
    {
83 2
        return 'Cannot remove file';
84
    }
85
86 3
    public function flCannotCreateDir(string $dirName): string
87
    {
88 3
        return 'Cannot create directory';
89
    }
90
91 7
    public function flCannotReadDir(string $dirName): string
92
    {
93 7
        return 'Cannot read directory';
94
    }
95
96 3
    public function flCannotCopyDir(string $sourceDirName, string $destDirName): string
97
    {
98 3
        return 'Cannot copy directory to destination';
99
    }
100
101 3
    public function flCannotMoveDir(string $sourceDirName, string $destDirName): string
102
    {
103 3
        return 'Cannot move directory to destination';
104
    }
105
106 3
    public function flCannotRemoveDir(string $dirName): string
107
    {
108 3
        return 'Cannot remove directory';
109
    }
110
111
    /**
112
     * @return string
113
     * @codeCoverageIgnore only when path fails
114
     */
115
    public function flNoDirectoryDelimiterSet(): string
116
    {
117
        return 'You set the empty directory delimiter!';
118
    }
119
120 1
    public function flNoProcessNodeSet(): string
121
    {
122 1
        return 'No processing nodes library set!';
123
    }
124
125 1
    public function flNoProcessFileSet(): string
126
    {
127 1
        return 'No processing files library set!';
128
    }
129
130 1
    public function flNoProcessDirSet(): string
131
    {
132 1
        return 'No processing directories library set!';
133
    }
134
135 11
    public function flNoAvailableClasses(): string
136
    {
137 11
        return 'No available classes for that settings!';
138
    }
139
}
140