X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FExtensions.php;h=1d55aeb9ac3da5bc6b261164739452476682b5a5;hb=0d5147553408267419ef1e8fbe3cfecb83dff7ba;hp=d5a7d7031135e0cf250b3d99dee09371a8c0015b;hpb=43625993dc97312d2b2296dceb7e83dcce8be27b;p=civicrm-core.git diff --git a/CRM/Admin/Form/Extensions.php b/CRM/Admin/Form/Extensions.php index d5a7d70311..1d55aeb9ac 100644 --- a/CRM/Admin/Form/Extensions.php +++ b/CRM/Admin/Form/Extensions.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -68,7 +68,7 @@ class CRM_Admin_Form_Extensions extends CRM_Admin_Form { break; case CRM_Core_Action::UPDATE: - if (! CRM_Extension_System::singleton()->getBrowser()->isEnabled()) { + if (!CRM_Extension_System::singleton()->getBrowser()->isEnabled()) { CRM_Core_Error::fatal(ts('The system administrator has disabled this feature.')); } $info = CRM_Extension_System::singleton()->getBrowser()->getExtension($this->_key); @@ -157,8 +157,8 @@ class CRM_Admin_Form_Extensions extends CRM_Admin_Form { * @param array $self * This object. * - * @return true if no errors, else an array of errors - * @static + * @return bool|array + * true if no errors, else an array of errors */ public static function formRule($fields, $files, $self) { $errors = array(); @@ -206,7 +206,7 @@ class CRM_Admin_Form_Extensions extends CRM_Admin_Form { 'version' => 3, 'key' => $this->_key, )); - if (! CRM_Utils_Array::value('is_error', $result, FALSE)) { + if (!CRM_Utils_Array::value('is_error', $result, FALSE)) { CRM_Core_Session::setStatus("", ts('Extension Upgraded'), "success"); } else { @@ -221,4 +221,5 @@ class CRM_Admin_Form_Extensions extends CRM_Admin_Form { ) ); } + }