Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function FieldHolder($properties = array()) |
||
37 | { |
||
38 | $content = $this->content; |
||
39 | |||
40 | if ($content instanceof ViewableData) { |
||
41 | if ($properties) { |
||
42 | $content = $content->customise($properties); |
||
43 | } |
||
44 | |||
45 | $content = $content->forTemplate(); |
||
46 | } |
||
47 | |||
48 | return '<p class="'.$this->classes.'"" name="'.$this->getName().'">'.$content.'</p>'; |
||
49 | } |
||
50 | } |
||
51 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.