diff --git a/mysite/code/Page.php b/mysite/code/Page.php index b83000d..6300926 100755 --- a/mysite/code/Page.php +++ b/mysite/code/Page.php @@ -4,9 +4,7 @@ use SilverStripe\CMS\Model\SiteTree; class Page extends SiteTree { - private static $db = array( - ); + private static $db = []; - private static $has_one = array( - ); + private static $has_one = []; } diff --git a/mysite/code/PageController.php b/mysite/code/PageController.php index 5a0adf9..0c36ff8 100644 --- a/mysite/code/PageController.php +++ b/mysite/code/PageController.php @@ -9,19 +9,17 @@ class PageController extends ContentController * permissions or conditions required to allow the user to access it. * * - * array ( + * [ * 'action', // anyone can access this action * 'action' => true, // same as above * 'action' => 'ADMIN', // you must have ADMIN permissions to access this action * 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true - * ); + * ]; * * * @var array */ - private static $allowed_actions = array( - - ); + private static $allowed_actions = []; protected function init() {