MINOR: Make use of static::class

This commit is contained in:
Sam Minnee 2016-09-28 11:34:42 +13:00
parent 2c7846cb72
commit c813488412
3 changed files with 4 additions and 4 deletions

View File

@ -171,7 +171,7 @@ class Report extends ViewableData
{
return Controller::join_links(
ReportAdmin::singleton()->Link('show'),
$this->sanitiseClassName(get_class($this)),
$this->sanitiseClassName(static::class),
$action
);
}
@ -197,7 +197,7 @@ class Report extends ViewableData
$sourceRecords = $this->sourceRecords($params, null, null);
if (!$sourceRecords instanceof SS_List) {
user_error(get_class($this) . "::sourceRecords does not return an SS_List", E_USER_NOTICE);
user_error(static::class . "::sourceRecords does not return an SS_List", E_USER_NOTICE);
return "-1";
}
return $sourceRecords->count();

View File

@ -28,7 +28,7 @@ abstract class ReportWrapper extends Report
public function ID()
{
return get_class($this->baseReport) . '_' . get_class($this);
return get_class($this->baseReport) . '_' . static::class;
}
///////////////////////////////////////////////////////////////////////////////////////////

View File

@ -43,7 +43,7 @@ class SideReportView extends ViewableData
$columns = $this->report->columns();
if ($records && $records->Count()) {
$result = "<ul class=\"" . get_class($this) . "\">\n";
$result = "<ul class=\"" . static::class . "\">\n";
foreach ($records as $record) {
$result .= "<li>\n";