HtmlAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A html() 0 2 1
1
<?php
2
3
namespace Phpsa\Datastore\Ams;
4
use Phpsa\Datastore\Asset;
5
6
class HtmlAsset extends Asset {
7
8
    public $type = HtmlAsset::class;
9
    public $namespace = 'property';
10
	public $options = ["formatting", "bold", "italic", "deleted", "unorderedlist","orderedlist", "image", "file", "link"];
11
12
    // return it raw
13
    public static function html($data) {
14
        return $data['value'];
15
    }
16
}
17