These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /** |
||
4 | * Get examples for building templates. |
||
5 | * |
||
6 | * @authors: Nicolaas [at] Sunny Side Up .co.nz |
||
7 | * @package: ecommerce |
||
8 | * @sub-package: tasks |
||
9 | * @inspiration: Silverstripe Ltd, Jeremy |
||
10 | **/ |
||
11 | class EcommerceTaskTemplateTest extends BuildTask |
||
0 ignored issues
–
show
|
|||
12 | { |
||
13 | protected $title = 'Get help with building templates'; |
||
14 | |||
15 | protected $description = 'Shows you some of the variables and controls you can use in your templates.'; |
||
16 | |||
17 | public function run($request) |
||
18 | { |
||
19 | DB::alteration_message('<br /><br /><br /><br /><br /><br /><a href="/ecommercetemplatetest/?flush=all" target="_debug">click here to view template test page</a>.<br /><br /><br /><br /><br /><br />'); |
||
20 | } |
||
21 | } |
||
22 |
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.