Passed
Push — master ( d467ff...321125 )
by Petr
08:04
created

Translations   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Test Coverage

Coverage 84.62%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 75
ccs 22
cts 26
cp 0.8462
rs 10
wmc 13

13 Methods

Rating   Name   Duplication   Size   Complexity  
A flCannotCreateDir() 0 3 1
A flCannotMoveFile() 0 3 1
A flCannotSaveFile() 0 3 1
A flCannotReadDir() 0 3 1
A flCannotProcessNode() 0 3 1
A flCannotCopyFile() 0 3 1
A flCannotLoadFile() 0 3 1
A flCannotRemoveDir() 0 3 1
A flCannotRemoveFile() 0 3 1
A flCannotMoveDir() 0 3 1
A flCannotCopyDir() 0 3 1
A flCannotGetSize() 0 3 1
A flCannotGetFilePart() 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 6
    public function flCannotLoadFile(string $fileName): string
22
    {
23 6
        return 'Cannot load wanted file.';
24
    }
25
26 3
    public function flCannotSaveFile(string $fileName): string
27
    {
28 3
        return 'Cannot save wanted file.';
29
    }
30
31
    /**
32
     * @param string $fileName
33
     * @return string
34
     * @codeCoverageIgnore failing streams
35
     */
36
    public function flCannotGetFilePart(string $fileName): string
37
    {
38
        return 'Cannot extract part of content';
39
    }
40
41
    /**
42
     * @param string $fileName
43
     * @return string
44
     * @codeCoverageIgnore failing streams
45
     */
46
    public function flCannotGetSize(string $fileName): string
47
    {
48
        return 'Cannot copy streams, cannot get file size';
49
    }
50
51 3
    public function flCannotCopyFile(string $sourceFileName, string $destFileName): string
52
    {
53 3
        return 'Cannot copy file to destination';
54
    }
55
56 1
    public function flCannotMoveFile(string $sourceFileName, string $destFileName): string
57
    {
58 1
        return 'Cannot move file to destination';
59
    }
60
61 2
    public function flCannotRemoveFile(string $fileName): string
62
    {
63 2
        return 'Cannot remove file';
64
    }
65
66 2
    public function flCannotCreateDir(string $dirName): string
67
    {
68 2
        return 'Cannot create directory';
69
    }
70
71 5
    public function flCannotReadDir(string $dirName): string
72
    {
73 5
        return 'Cannot read directory';
74
    }
75
76 2
    public function flCannotCopyDir(string $sourceDirName, string $destDirName): string
77
    {
78 2
        return 'Cannot copy directory to destination';
79
    }
80
81 2
    public function flCannotMoveDir(string $sourceDirName, string $destDirName): string
82
    {
83 2
        return 'Cannot move directory to destination';
84
    }
85
86 2
    public function flCannotRemoveDir(string $dirName): string
87
    {
88 2
        return 'Cannot remove directory';
89
    }
90
}
91