Converted to PSR-2

This commit is contained in:
helpfulrobot 2015-11-18 16:38:28 +13:00
parent ddf5052503
commit 98c125360b
3 changed files with 25 additions and 25 deletions

View File

@ -537,7 +537,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
protected function setDefaultReviewDateForInherited() protected function setDefaultReviewDateForInherited()
{ {
// Don't overwrite existing value // Don't overwrite existing value
if($this->owner->NextReviewDate) { if ($this->owner->NextReviewDate) {
return; return;
} }

View File

@ -167,7 +167,7 @@ class PagesDueForReviewReport extends SS_Report
if (!empty($params["OnlyMyPages"])) { if (!empty($params["OnlyMyPages"])) {
$currentUser = Member::currentUser(); $currentUser = Member::currentUser();
$records = $records->filterByCallback(function($page) use ($currentUser) { $records = $records->filterByCallback(function ($page) use ($currentUser) {
$options = $page->getOptions(); $options = $page->getOptions();
foreach ($options->ContentReviewOwners() as $owner) { foreach ($options->ContentReviewOwners() as $owner) {