Test Failed
Pull Request — master (#20)
by Alexander
04:17 queued 01:35
created

UserFormatter::format()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\User;
6
7
final class UserFormatter
8
{
9
    public function format(User $user): array
10
    {
11
        return [
12
            'login' => $user->getLogin(),
13
            'created_at' => $user->getCreatedAt()->format('d.m.Y H:i:s'),
14
        ];
15
    }
16
}
17