Merge pull request #4979 from xurizaemon/codingstandards-12
[civicrm-core.git] / CRM / Admin / Form / Setting / Url.php
index 1d531c9724aa4d6102275fcbcbbde16507e583cd..d16a5e8839580bcee78e8ea59581be4ce3d5d2e6 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -42,16 +42,16 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting {
     'cvv_backoffice_required' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
     'disable_core_css' => CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
   );
+
   /**
    * Build the form object
    *
    * @return void
-   * @access public
    */
   public function buildQuickForm() {
     CRM_Utils_System::setTitle(ts('Settings - Resource URLs'));
     $settingFields = civicrm_api('setting', 'getfields', array(
-      'version' => 3
+      'version' => 3,
     ));
 
     $this->addElement('text', 'userFrameworkResourceURL', ts('CiviCRM Resource URL'));
@@ -73,7 +73,7 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting {
    *
    * @return array|bool
    */
-  static function formRule($fields) {
+  public static function formRule($fields) {
     if (isset($fields['enableSSL']) &&
       $fields['enableSSL']
     ) {
@@ -98,7 +98,7 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting {
     // a potentially spurious message which might already have been set. This
     // is a bit hackish
     // CRM-10629
-    $session = CRM_Core_Session::singleton( );
+    $session = CRM_Core_Session::singleton();
     $session->getStatus(TRUE);
 
     parent::postProcess();
@@ -106,4 +106,3 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting {
     parent::rebuildMenu();
   }
 }
-