Json   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 2
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A convert() 0 3 2
1
<?php
2
declare(strict_types=1);
3
4
5
namespace Xervice\Database\Business\Model\Config\Converter;
6
7
8
class Json implements ConverterInterface
9
{
10
    /**
11
     * @param array $config
12
     *
13
     * @return string|null
14
     */
15 1
    public function convert(array $config) : ?string
16
    {
17 1
        return  json_encode($config, 448) ?: null;
18
    }
19
}
20