INFRA-132 - CRM/Contact - phpcbf
[civicrm-core.git] / CRM / Contact / Page / View / UserDashBoard.php
index 4be8ce7be551b455c14a42a2d3bf2f449ec62da0..7c3db5361ba56ef2fecc7a1787d03d70c8a2e54c 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -60,7 +60,7 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page {
   /**
    * @throws Exception
    */
-  function __construct() {
+  public function __construct() {
     parent::__construct();
 
     $check = CRM_Core_Permission::check('access Contact Dashboard');
@@ -92,9 +92,8 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page {
    * the contact and calls the appropriate type of page to view.
    *
    * @return void
-   * @access public
    */
-  function preProcess() {
+  public function preProcess() {
     if (!$this->_contactId) {
       CRM_Core_Error::fatal(ts('You must be logged in to view this page.'));
     }
@@ -113,9 +112,8 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page {
    * Build user dashboard
    *
    * @return void
-   * @access public
    */
-  function buildUserDashBoard() {
+  public function buildUserDashBoard() {
     //build component selectors
     $dashboardElements = array();
     $config = CRM_Core_Config::singleton();
@@ -205,9 +203,8 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page {
    *
    * @return void
    *
-   * @access public
    */
-  function run() {
+  public function run() {
     $this->preProcess();
     $this->buildUserDashBoard();
     return parent::run();
@@ -220,7 +217,7 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page {
    * @static
    */
   static
-  function &links() {
+  public function &links() {
     if (!(self::$_links)) {
       $disableExtra = ts('Are you sure you want to disable this relationship?');
 
@@ -240,7 +237,6 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page {
         ),
       );
 
-
       if (CRM_Core_Permission::check('access CiviCRM')) {
         self::$_links = array_merge(self::$_links, array(
           CRM_Core_Action::DISABLE => array(