Test Failed
Push — master ( 646e1f...19314b )
by Gabriel
02:47
created

MoneyFormat::html()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace ByTIC\Money\Utility;
4
5
use ByTIC\Money\Formatter\HtmlFormatter;
6
7
/**
8
 * Class MoneyFormat
9
 * @package ByTIC\Money\Utility
10
 */
11
class MoneyFormat
12
{
13
    /**
14
     * @param $value
15
     * @param $currency
16
     */
17
    public static function html($value, $currency = null)
18
    {
19
        $money = Money::create($value, $currency);
20
        return money_formatter()->get('html')->format($money);
21
    }
22
}