mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Use square arrays
This commit is contained in:
parent
0c684045f3
commit
05fb6fa217
@ -12,26 +12,26 @@ class ContentReviewLog extends DataObject
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private static $db = array(
|
||||
private static $db = [
|
||||
"Note" => "Text",
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private static $has_one = array(
|
||||
private static $has_one = [
|
||||
"Reviewer" => Member::class,
|
||||
"SiteTree" => SiteTree::class,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private static $summary_fields = array(
|
||||
"Note" => array("title" => "Note"),
|
||||
"Created" => array("title" => "Reviewed at"),
|
||||
"Reviewer.Title" => array("title" => "Reviewed by"),
|
||||
);
|
||||
private static $summary_fields = [
|
||||
"Note" => ["title" => "Note"],
|
||||
"Created" => ["title" => "Reviewed at"],
|
||||
"Reviewer.Title" => ["title" => "Reviewed by"]
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
Loading…
Reference in New Issue
Block a user