mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix indentation
This commit is contained in:
parent
e107512063
commit
c755f77288
@ -3709,18 +3709,18 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function summaryFields() {
|
public function summaryFields() {
|
||||||
$rawFields = $this->stat('summary_fields');
|
$rawFields = $this->stat('summary_fields');
|
||||||
|
|
||||||
$fields = [];
|
$fields = [];
|
||||||
// Merge associative / numeric keys
|
// Merge associative / numeric keys
|
||||||
if (is_array($rawFields)) {
|
if (is_array($rawFields)) {
|
||||||
foreach ($rawFields as $key => $value) {
|
foreach ($rawFields as $key => $value) {
|
||||||
if (is_int($key)) {
|
if (is_int($key)) {
|
||||||
$key = $value;
|
$key = $value;
|
||||||
}
|
}
|
||||||
$fields[$key] = $value;
|
$fields[$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$fields) {
|
if (!$fields) {
|
||||||
$fields = array();
|
$fields = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user