Passed
Push — master ( eb90b5...21801a )
by Petr
02:33
created

Translations::imImageCannotCleanup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace kalanis\kw_images;
4
5
6
use kalanis\kw_images\Interfaces\IIMTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_images
12
 */
13
class Translations implements IIMTranslations
14
{
15
    /**
16
     * @return string
17
     * @codeCoverageIgnore
18
     */
19
    public function imGdLibNotPresent(): string
20
    {
21
        return 'GD2 library is not present!';
22
    }
23
24
    /**
25
     * @return string
26
     * @codeCoverageIgnore
27
     */
28
    public function imRotateLibNotPresent(): string
29
    {
30
        return 'Libraries for rotation is not present!';
31
    }
32
33
    /**
34
     * @return string
35
     * @codeCoverageIgnore
36
     */
37
    public function imImageMagicLibNotPresent(): string
38
    {
39
        return 'ImageMagic not installed or too old!';
40
    }
41
42
    /**
43
     * @return string
44
     * @codeCoverageIgnore
45
     */
46
    public function imCannotCreateFromResource(): string
47
    {
48
        return 'Cannot create image from resource!';
49
    }
50
51
    /**
52
     * @return string
53
     * @codeCoverageIgnore
54
     */
55
    public function imCannotSaveResource(): string
56
    {
57
        return 'Cannot save image resource!';
58
    }
59
60 2
    public function imUnknownMime(): string
61
    {
62 2
        return 'Unknown mime class!';
63
    }
64
65 2
    public function imUnknownType(string $type): string
66
    {
67 2
        return sprintf('Unknown type *%s*', $type);
68
    }
69
70 1
    public function imWrongInstance(string $instance): string
71
    {
72 1
        return sprintf('Wrong instance of *%s*, must be instance of \kalanis\kw_images\Graphics\Format\AFormat', $instance);
73
    }
74
75 4
    public function imWrongMime(string $mime): string
76
    {
77 4
        return sprintf('Wrong file mime type - got *%s*', $mime);
78
    }
79
80 3
    public function imSizesNotSet(): string
81
    {
82 3
        return 'Sizes to compare are not set.';
83
    }
84
85
    /**
86
     * @return string
87
     * @codeCoverageIgnore
88
     */
89
    public function imImageCannotResize(): string
90
    {
91
        return 'Image cannot be resized!';
92
    }
93
94
    /**
95
     * @return string
96
     * @codeCoverageIgnore
97
     */
98
    public function imImageCannotResample(): string
99
    {
100
        return 'Image cannot be resampled!';
101
    }
102
103
    /**
104
     * @return string
105
     * @codeCoverageIgnore
106
     */
107
    public function imImageCannotOrientate(): string
108
    {
109
        return 'Image cannot be orientated!';
110
    }
111
112
    /**
113
     * @return string
114
     * @codeCoverageIgnore
115
     */
116
    public function imImageCannotFlip(): string
117
    {
118
        return 'Image cannot be flipped!';
119
    }
120
121
    /**
122
     * @return string
123
     * @codeCoverageIgnore
124
     */
125
    public function imImageCannotCleanup(): string
126
    {
127
        return 'Image cannot be removed from memory!';
128
    }
129
130
    /**
131
     * @return string
132
     * @codeCoverageIgnore
133
     */
134
    public function imImageCannotCreateEmpty(): string
135
    {
136
        return 'Cannot create empty image!';
137
    }
138
139
    /**
140
     * @return string
141
     * @codeCoverageIgnore
142
     */
143
    public function imImageCannotGetSize(): string
144
    {
145
        return 'Cannot get image size!';
146
    }
147
148 1
    public function imImageLoadFirst(): string
149
    {
150 1
        return 'You must load image first!';
151
    }
152
153 3
    public function imDescCannotRemove(): string
154
    {
155 3
        return 'Cannot remove description!';
156
    }
157
158 4
    public function imDescCannotFind(): string
159
    {
160 4
        return 'Cannot find that description.';
161
    }
162
163 4
    public function imDescAlreadyExistsHere(): string
164
    {
165 4
        return 'Description with the same name already exists here.';
166
    }
167
168 4
    public function imDescCannotRemoveOld(): string
169
    {
170 4
        return 'Cannot remove old description.';
171
    }
172
173 2
    public function imDescCannotCopyBase(): string
174
    {
175 2
        return 'Cannot copy base description.';
176
    }
177
178 2
    public function imDescCannotMoveBase(): string
179
    {
180 2
        return 'Cannot move base description.';
181
    }
182
183 2
    public function imDescCannotRenameBase(): string
184
    {
185 2
        return 'Cannot rename base description.';
186
    }
187
188 2
    public function imDirThumbCannotRemove(): string
189
    {
190 2
        return 'Cannot remove dir thumb!';
191
    }
192
193 1
    public function imDirThumbCannotRemoveCurrent(): string
194
    {
195 1
        return 'Cannot remove current thumb!';
196
    }
197
198 1
    public function imImageSizeExists(): string
199
    {
200 1
        return 'Cannot read file size. Exists?';
201
    }
202
203 3
    public function imImageSizeTooLarge(): string
204
    {
205 3
        return 'This image is too large to use.';
206
    }
207
208 10
    public function imImageCannotFind(): string
209
    {
210 10
        return 'Cannot find that image.';
211
    }
212
213 5
    public function imImageCannotRemove(): string
214
    {
215 5
        return 'Cannot remove image.';
216
    }
217
218 10
    public function imImageAlreadyExistsHere(): string
219
    {
220 10
        return 'Image with the same name already exists here.';
221
    }
222
223 10
    public function imImageCannotRemoveOld(): string
224
    {
225 10
        return 'Cannot remove old image.';
226
    }
227
228 4
    public function imImageCannotCopyBase(): string
229
    {
230 4
        return 'Cannot copy base image.';
231
    }
232
233 4
    public function imImageCannotMoveBase(): string
234
    {
235 4
        return 'Cannot move base image.';
236
    }
237
238 4
    public function imImageCannotRenameBase(): string
239
    {
240 4
        return 'Cannot rename base image.';
241
    }
242
243 7
    public function imThumbCannotFind(): string
244
    {
245 7
        return 'Cannot find that thumb.';
246
    }
247
248 7
    public function imThumbCannotRemove(): string
249
    {
250 7
        return 'Cannot remove thumb!';
251
    }
252
253 7
    public function imThumbAlreadyExistsHere(): string
254
    {
255 7
        return 'Thumb with the same name already exists here.';
256
    }
257
258 7
    public function imThumbCannotRemoveOld(): string
259
    {
260 7
        return 'Cannot remove old thumb.';
261
    }
262
263 3
    public function imThumbCannotGetBaseImage(): string
264
    {
265 3
        return 'Cannot get base image.';
266
    }
267
268
    /**
269
     * @return string
270
     * @codeCoverageIgnore failed local volume
271
     */
272
    public function imThumbCannotStoreTemporaryImage(): string
273
    {
274
        return 'Cannot store temporary image.';
275
    }
276
277
    /**
278
     * @return string
279
     * @codeCoverageIgnore failed local volume
280
     */
281
    public function imThumbCannotLoadTemporaryImage(): string
282
    {
283
        return 'Cannot load temporary image.';
284
    }
285
286 3
    public function imThumbCannotCopyBase(): string
287
    {
288 3
        return 'Cannot copy base thumb.';
289
    }
290
291 3
    public function imThumbCannotMoveBase(): string
292
    {
293 3
        return 'Cannot move base thumb.';
294
    }
295
296 3
    public function imThumbCannotRenameBase(): string
297
    {
298 3
        return 'Cannot rename base thumb.';
299
    }
300
}
301