Merge pull request #5077 from eileenmcnaughton/comment-full-stops
[civicrm-core.git] / CRM / Admin / Form / Extensions.php
index d5a7d7031135e0cf250b3d99dee09371a8c0015b..1d55aeb9ac3da5bc6b261164739452476682b5a5 100644 (file)
@@ -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 {
       )
     );
   }
+
 }