Translations   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A kpgShowResults() 0 7 1
1
<?php
2
3
namespace kalanis\kw_paging;
4
5
6
use kalanis\kw_paging\Interfaces\IPGTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_paging
12
 * Translations
13
 */
14
class Translations implements IPGTranslations
15
{
16 14
    public function kpgShowResults(int $from, int $to, int $max): string
17
    {
18 14
        return sprintf(
19 14
            'Showing results %d - %d of total %d',
20
            $from,
21
            $to,
22
            $max
23
        );
24
    }
25
}
26