Translations::mdStorageLoadProblem()   A
last analyzed

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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace kalanis\kw_modules;
4
5
6
use kalanis\kw_modules\Interfaces\IMdTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_modules
12
 * Translations
13
 */
14
class Translations implements IMdTranslations
15
{
16 7
    public function mdNoLoaderSet(): string
17
    {
18 7
        return 'No loader set!';
19
    }
20
21 2
    public function mdNoSourceSet(): string
22
    {
23 2
        return 'No source set!';
24
    }
25
26
    /**
27
     * @param string $classPath
28
     * @return string
29
     * @codeCoverageIgnore autoloader problem - got something that is not a class
30
     */
31
    public function mdNotInstanceOfIModule(string $classPath): string
32
    {
33
        return sprintf('Class *%s* is not instance of IModule - check interface or query', $classPath);
34
    }
35
36 3
    public function mdNoModuleFound(): string
37
    {
38 3
        return 'No module found';
39
    }
40
41 1
    public function mdConfPathNotSet(): string
42
    {
43 1
        return 'Path to config is not set!';
44
    }
45
46 2
    public function mdStorageTargetNotSet(): string
47
    {
48 2
        return 'Site part and then file name is not set!';
49
    }
50
51 2
    public function mdStorageLoadProblem(): string
52
    {
53 2
        return 'Problem with storage load';
54
    }
55
56 2
    public function mdStorageSaveProblem(): string
57
    {
58 2
        return 'Problem with storage save';
59
    }
60
61 1
    public function mdNoOpeningTag(): string
62
    {
63 1
        return 'No opening tag in stack to compare!';
64
    }
65
66 1
    public function mdNoEndingTag(string $module): string
67
    {
68 1
        return sprintf('No ending tag for module *%s*', $module);
69
    }
70
}
71