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

MoneyFormat   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

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