SingleDigitInstallmentFormatter   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 3 3
1
<?php
2
namespace Paranoia\Formatter;
3
4
class SingleDigitInstallmentFormatter implements FormatterInterface
5
{
6
    public function format($input)
7
    {
8
        return (!is_numeric($input) || intval($input) <= 1) ? null : $input;
9
    }
10
}
11