Completed
Push — master ( 9c0899...c3d528 )
by Vojta
09:15 queued 56s
created

TimeDiffTranslator::trans()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 4
crap 2
1
<?php namespace VojtaSvoboda\TwigExtensions\Classes;
2
3
use App;
4
use October\Rain\Translation\Translator;
5
6
class TimeDiffTranslator extends Translator
7
{
8
    public function trans($id, array $parameters = [], $domain = 'messages', $locale = null)
9
    {
10
        return $this->get('vojtasvoboda.twigextensions::lang.' . $id, $parameters, $locale);
11
    }
12
13
    public function transChoice($id, $number, array $parameters = [], $domain = 'messages', $locale = null)
14
    {
15
        return $this->choice('vojtasvoboda.twigextensions::lang.' . $id, $number, $parameters, $locale);
16
    }
17
}
18