Skip to content

Commit

Permalink
Merge pull request #18 from helpfulrobot/convert-to-psr-2
Browse files Browse the repository at this point in the history
Converted to PSR-2
  • Loading branch information
Damian Mooyman committed Nov 26, 2015
2 parents 85d9edb + f299009 commit 0f2e94f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions code/SitewideContentReport.php
Expand Up @@ -266,8 +266,8 @@ class GridFieldBasicContentReport extends GridField
*/
protected function getRowAttributes($total, $index, $record)
{
$attributes = parent::getRowAttributes($total, $index, $record);
$this->extend('updateRowAttributes', $total, $index, $record, $attributes);
return $attributes;
$attributes = parent::getRowAttributes($total, $index, $record);
$this->extend('updateRowAttributes', $total, $index, $record, $attributes);
return $attributes;
}
}
7 changes: 4 additions & 3 deletions code/extensions/SitewideContentSubsites.php
Expand Up @@ -40,7 +40,8 @@ public function updateColumns($itemType, &$columns)
);
}

public function updateRowAttributes($total, $index, $record, &$attributes) {
$attributes['data-subsite-id'] = $record->SubsiteID;
}
public function updateRowAttributes($total, $index, $record, &$attributes)
{
$attributes['data-subsite-id'] = $record->SubsiteID;
}
}

0 comments on commit 0f2e94f

Please sign in to comment.