MoneyFormat   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 4
c 2
b 0
f 1
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A html() 0 5 1
1
<?php
2
3
namespace ByTIC\Money\Utility;
4
5
/**
6
 * Class MoneyFormat
7
 * @package ByTIC\Money\Utility
8
 */
9
class MoneyFormat
10
{
11
    /**
12
     * @param $value
13
     * @param $currency
14
     */
15
    public static function html($value, $currency = null)
16
    {
17 1
        $currency = \ByTIC\Money\Money::currency($currency);
18
        $money = \ByTIC\Money\Money::parse($value, $currency);
19 1
        return $money->formatBy('html');
20 1
    }
21
}
22