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 | * @authors: Nicolaas [at] Sunny Side Up .co.nz |
||
5 | * @package: ecommerce |
||
6 | * @sub-package: tasks |
||
7 | **/ |
||
8 | class EcommerceTaskReviewReports extends BuildTask |
||
0 ignored issues
–
show
|
|||
9 | { |
||
10 | /** |
||
11 | * Standard (required) SS variable for BuildTasks. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $title = 'Review E-commerce Pages using the Reports interface'; |
||
16 | |||
17 | /** |
||
18 | * Standard (required) SS variable for BuildTasks. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = ' |
||
23 | Review a bunch of reports that provide information on the e-commerce pages created, such as the Products without Images.'; |
||
24 | |||
25 | public function run($request) |
||
26 | { |
||
27 | DB::alteration_message('<h1><a href="/admin/reports/" target="_blank">Open Reports Interface</a></h1>'); |
||
28 | } |
||
29 | } |
||
30 |
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.