Passed
Push — master ( 1a6375...8f4058 )
by Petr
08:21 queued 05:12
created

Translations   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
eloc 8
c 1
b 0
f 0
dl 0
loc 56
rs 10
ccs 4
cts 4
cp 1

7 Methods

Rating   Name   Duplication   Size   Complexity  
A miCannotLoadFile() 0 3 1
A miNoStorage() 0 3 1
A miCannotGetFilePart() 0 3 1
A miNoMethod() 0 3 1
A miNoFunction() 0 3 1
A miCannotLoadTempFile() 0 3 1
A miNoClass() 0 3 1
1
<?php
2
3
namespace kalanis\kw_mime;
4
5
6
use kalanis\kw_mime\Interfaces\IMiTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_mime
12
 * Translations
13
 */
14
class Translations implements IMiTranslations
15
{
16 6
    public function miCannotLoadFile(string $target): string
17
    {
18 6
        return 'Cannot load wanted file.';
19
    }
20
21
    /**
22
     * @return string
23
     * @codeCoverageIgnore failing local device
24
     */
25
    public function miCannotLoadTempFile(): string
26
    {
27
        return 'Cannot load temporary file.';
28
    }
29
30
    /**
31
     * @param string $target
32
     * @return string
33
     * @codeCoverageIgnore failing streams
34
     */
35
    public function miCannotGetFilePart(string $target): string
36
    {
37
        return 'Cannot extract part of content';
38
    }
39
40
    /**
41
     * @return string
42
     * @codeCoverageIgnore failing libraries
43
     */
44
    public function miNoClass(): string
45
    {
46
        return 'No necessary class defined and available!';
47
    }
48
49
    /**
50
     * @return string
51
     * @codeCoverageIgnore failing libraries
52
     */
53
    public function miNoMethod(): string
54
    {
55
        return 'No necessary method defined and available!';
56
    }
57
58
    /**
59
     * @return string
60
     * @codeCoverageIgnore failing libraries
61
     */
62
    public function miNoFunction(): string
63
    {
64
        return 'No necessary function defined and available!';
65
    }
66
67 2
    public function miNoStorage(): string
68
    {
69 2
        return 'No storage set!';
70
    }
71
}
72