Merge pull request #4863 from totten/master-phpcbf4
[civicrm-core.git] / CRM / Admin / Page / PreferencesDate.php
index 348f2a0535565a6ce7d5232744a1d165ef1aead1..29c1381d8c7657c1a65b9c26b3aa61b217575dab 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -51,7 +51,7 @@ class CRM_Admin_Page_PreferencesDate extends CRM_Core_Page_Basic {
    *
    * @return string Classname of BAO.
    */
-  function getBAOName() {
+  public function getBAOName() {
     return 'CRM_Core_BAO_PreferencesDate';
   }
 
@@ -60,7 +60,7 @@ class CRM_Admin_Page_PreferencesDate extends CRM_Core_Page_Basic {
    *
    * @return array (reference) of action links
    */
-  function &links() {
+  public function &links() {
     if (!(self::$_links)) {
       self::$_links = array(
         CRM_Core_Action::UPDATE => array(
@@ -82,10 +82,9 @@ class CRM_Admin_Page_PreferencesDate extends CRM_Core_Page_Basic {
    * Finally it calls the parent's run method.
    *
    * @return void
-   * @access public
    *
    */
-  function run() {
+  public function run() {
     // set title and breadcrumb
     CRM_Utils_System::setTitle(ts('Settings - Date Preferences'));
     return parent::run();
@@ -96,7 +95,7 @@ class CRM_Admin_Page_PreferencesDate extends CRM_Core_Page_Basic {
    *
    * @return string Classname of edit form.
    */
-  function editForm() {
+  public function editForm() {
     return 'CRM_Admin_Form_PreferencesDate';
   }
 
@@ -105,17 +104,18 @@ class CRM_Admin_Page_PreferencesDate extends CRM_Core_Page_Basic {
    *
    * @return string name of this page.
    */
-  function editName() {
+  public function editName() {
     return 'Date Preferences';
   }
 
   /**
    * Get user context.
    *
+   * @param null $mode
+   *
    * @return string user context.
    */
-  function userContext($mode = NULL) {
+  public function userContext($mode = NULL) {
     return 'civicrm/admin/setting/preferences/date';
   }
 }
-