Json   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
dl 0
loc 7
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A reformat() 0 4 1
1
<?php
2
3
namespace TheSupportGroup\Common\Validator\Format;
4
5
use TheSupportGroup\Common\Validator\Contracts\Format\FormatInterface;
6
7
class Json implements FormatInterface
8
{
9
    public function reformat($messages)
10
    {
11
        return json_encode($messages);
12
    }
13
}
14