Conditions | 5 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function handleRawType($value, $field, $class) |
||
24 | { |
||
25 | if (!is_array($value)) { |
||
26 | return $value; |
||
27 | } |
||
28 | |||
29 | $db = $class::config()->get('db'); |
||
30 | foreach ($db as $fieldTitle => $fieldType) { |
||
31 | if ($field === $fieldTitle && $fieldType === 'HTMLText') { |
||
32 | return '<p>' . implode('<p></p>', $value) . '</p>'; |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return implode('\r\n', $value); |
||
37 | } |
||
39 |