Fix indentation

This commit is contained in:
Aaron Carlino 2018-02-27 22:34:16 +13:00
parent e107512063
commit c755f77288

View File

@ -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();