Test Failed
Push — master ( 751b74...30bdfb )
by Julien
11:52
created

Fr   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 11
dl 0
loc 17
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
/**
3
 * This file is part of the Zemit Framework.
4
 *
5
 * (c) Zemit Team <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE.txt
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Zemit\Locales;
12
13
use Phalcon\Translate\Adapter\NativeArray;
14
use Phalcon\Translate\InterpolatorFactory;
15
16
/**
17
 * Class Fr
18
 * {@inheritDoc}
19
 *
20
 * @link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
21
 *
22
 * @author Julien Turbide <[email protected]>
23
 * @copyright Zemit Team <[email protected]>
24
 *
25
 * @since 1.0
26
 * @version 1.0
27
 *
28
 * @package Zemit\Locale
29
 */
30
class Fr extends NativeArray
31
{
32
    public function __construct(InterpolatorFactory $interpolator, array $options)
33
    {
34
        $this->replacePlaceholders('zemit', [
35
            'zemit' => '<a href="https://www.zemit.com/">Zemit</a>'
36
        ]);
37
        
38
        parent::__construct($interpolator, array_merge_recursive([
39
            'locale' => 'fr_CA.UTF-8',
40
            'defaultDomain' => 'zemit',
41
            'category' => LC_MESSAGES,
42
            'content' => [
43
                'powered-by' => 'Propulsé par %zemit%.',
44
                'copyright' => '%zemit% &copy; 2017 Zemit.',
45
            ],
46
        ], $options));
47
    }
48
}
49