Conditions | 5 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
36 | private function stringify($mixed) |
||
37 | { |
||
38 | if (is_string($mixed)) { |
||
39 | return $mixed; |
||
40 | } |
||
41 | |||
42 | if (is_array($mixed) && 2 === count($mixed)) { |
||
43 | return sprintf('%s::%s', $this->stringify($mixed[0]), $mixed[1]); |
||
44 | } |
||
45 | |||
46 | return is_object($mixed) ? get_class($mixed) : gettype($mixed); |
||
47 | } |
||
48 | } |
||
49 |