Passed
Push — master ( 08368b...d03553 )
by Sebastian
02:27
created

VariableInfo_Renderer_String_Array   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A _render() 0 10 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AppUtils;
6
7
class VariableInfo_Renderer_String_Array extends VariableInfo_Renderer_String
8
{
9
    protected function _render()
10
    {
11
        $result = array();
12
        
13
        foreach($this->value as $key => $val)
14
        {
15
            $result[$key] = parseVariable($val)->toString();
16
        }
17
        
18
        return print_r($result, true);
19
    }
20
}
21