ExpireDateFormatter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
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 1
1
<?php
2
namespace Paranoia\Formatter\NestPay;
3
4
use Paranoia\Formatter\FormatterInterface;
5
6
class ExpireDateFormatter implements FormatterInterface
7
{
8
    public function format($input)
9
    {
10
        return sprintf('%02s/%04s', $input[0], $input[1]);
11
    }
12
}
13