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

TimeDiffTranslator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A trans() 0 4 1
A transChoice() 0 4 1
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