Json::reformat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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