Passed
Push — master ( 1f33ad...fba3db )
by Petr
08:38
created

Translations::flCannotOpenFile()   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 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 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 1
    public function flCannotOpenFile(string $fileName): string
32
    {
33 1
        return 'Cannot open wanted file.';
34
    }
35
36
    /**
37
     * @param string $fileName
38
     * @return string
39
     * @codeCoverageIgnore failing streams
40
     */
41
    public function flCannotWriteFile(string $fileName): string
42
    {
43
        return 'Cannot write wanted file.';
44
    }
45
46
    /**
47
     * @param string $fileName
48
     * @return string
49
     * @codeCoverageIgnore failing streams
50
     */
51
    public function flCannotGetFilePart(string $fileName): string
52
    {
53
        return 'Cannot extract part of content';
54
    }
55
56
    /**
57
     * @param string $fileName
58
     * @return string
59
     * @codeCoverageIgnore failing streams
60
     */
61
    public function flCannotGetSize(string $fileName): string
62
    {
63
        return 'Cannot copy streams, cannot get file size';
64
    }
65
66 4
    public function flCannotCopyFile(string $sourceFileName, string $destFileName): string
67
    {
68 4
        return 'Cannot copy file to destination';
69
    }
70
71 1
    public function flCannotMoveFile(string $sourceFileName, string $destFileName): string
72
    {
73 1
        return 'Cannot move file to destination';
74
    }
75
76 2
    public function flCannotRemoveFile(string $fileName): string
77
    {
78 2
        return 'Cannot remove file';
79
    }
80
81 3
    public function flCannotCreateDir(string $dirName): string
82
    {
83 3
        return 'Cannot create directory';
84
    }
85
86 7
    public function flCannotReadDir(string $dirName): string
87
    {
88 7
        return 'Cannot read directory';
89
    }
90
91 3
    public function flCannotCopyDir(string $sourceDirName, string $destDirName): string
92
    {
93 3
        return 'Cannot copy directory to destination';
94
    }
95
96 3
    public function flCannotMoveDir(string $sourceDirName, string $destDirName): string
97
    {
98 3
        return 'Cannot move directory to destination';
99
    }
100
101 3
    public function flCannotRemoveDir(string $dirName): string
102
    {
103 3
        return 'Cannot remove directory';
104
    }
105
106
    /**
107
     * @return string
108
     * @codeCoverageIgnore only when path fails
109
     */
110
    public function flNoDirectoryDelimiterSet(): string
111
    {
112
        return 'You set the empty directory delimiter!';
113
    }
114
115 1
    public function flNoProcessNodeSet(): string
116
    {
117 1
        return 'No processing nodes library set!';
118
    }
119
120 1
    public function flNoProcessFileSet(): string
121
    {
122 1
        return 'No processing files library set!';
123
    }
124
125 1
    public function flNoProcessDirSet(): string
126
    {
127 1
        return 'No processing directories library set!';
128
    }
129
130 11
    public function flNoAvailableClasses(): string
131
    {
132 11
        return 'No available classes for that settings!';
133
    }
134
}
135