Conditions | 3 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function Content() |
||
29 | { |
||
30 | $field = EcommerceSearchHistoryFormField::create('SearchHistory', 'Search Favourites') |
||
31 | ->setNumberOfDays($this->DaysBack ? $this->DaysBack : $this->Config()->defaults['DaysBack']) |
||
32 | ->setMaxRows(($this->MaxRows ? $this->MaxRows : $this->Config()->defaults['MaxRows'])) |
||
33 | ->setShowMoreLink(false) |
||
34 | ->setAddTitle(false) |
||
35 | ->setAddAtoZ(false); |
||
36 | return $field->Field(); |
||
37 | } |
||
38 | } |
||
39 |
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.