Clarify return val, fix casing on a couple of function calls
authoreileen <emcnaughton@wikimedia.org>
Tue, 10 Jan 2017 01:54:13 +0000 (14:54 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 10 Jan 2017 01:54:13 +0000 (14:54 +1300)
CRM/ACL/Form/WordPress/Permissions.php
CRM/Case/Form/Activity.php
CRM/Case/Form/Task/Print.php
CRM/Core/Payment/AuthorizeNet.php
CRM/Event/Cart/Form/Checkout/Payment.php

index ff4617ba5eff460d239492e5733ed852dea3694e..5273969e0ab14999479047eb3596a4f067d42ee9 100644 (file)
@@ -134,7 +134,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
         // Get the permissions into a format that matches what we get from WP
         $allWarningPermissions = CRM_Core_Permission::getAnonymousPermissionsWarnings();
         foreach ($allWarningPermissions as $key => $permission) {
-          $allWarningPermissions[$key] = CRM_utils_String::munge(strtolower($permission));
+          $allWarningPermissions[$key] = CRM_Utils_String::munge(strtolower($permission));
         }
         $warningPermissions = array_intersect($allWarningPermissions, array_keys($rolePermissions));
         $warningPermissionNames = array();
index 7156acd1fb32a9fbfe74d993d9373bdd0c31baa5..338cd364572d6e183fd6d0f93c21995ef0d678ce 100644 (file)
@@ -341,7 +341,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
       return TRUE;
     }
 
-    return parent::formrule($fields, $files, $self);
+    return parent::formRule($fields, $files, $self);
   }
 
   /**
index e9ce32a15b18d90a259f8806e60a42b6cbeaff01..5e17d3fe2ca8b1ec8b7cd1d0d55737c07e7823a4 100644 (file)
@@ -41,7 +41,7 @@ class CRM_Case_Form_Task_Print extends CRM_Case_Form_Task {
    * Build all the data structures needed to build the form.
    */
   public function preProcess() {
-    parent::preprocess();
+    parent::preProcess();
 
     // set print view, so that print templates are called
     $this->controller->setPrint(1);
index f365683550fd7c2b462c1be5d8d968ba99a130d9..2dd73da5f80dba292038bf01476ad7303d108b86 100644 (file)
@@ -816,7 +816,7 @@ class CRM_Core_Payment_AuthorizeNet extends CRM_Core_Payment {
 
     curl_close($submit);
 
-    $responseFields = $this->_ParseArbReturn($response);
+    $responseFields = $this->_parseArbReturn($response);
     $message = "{$responseFields['code']}: {$responseFields['text']}";
 
     if ($responseFields['resultCode'] == 'Error') {
index cdef3ae592abb1950bd8d876f3e16636fb7c5ede..59f843ad461e75de40bbfab15931b174a2b8602b 100644 (file)
@@ -780,7 +780,7 @@ class CRM_Event_Cart_Form_Checkout_Payment extends CRM_Event_Cart_Form_Cart {
     $dao = CRM_Core_DAO::executeQuery($sql, '');
     while ($dao->fetch()) {
       if ($dao->is_active != '1') {
-        return;
+        return FALSE;
       }
     }
     $discounted_priceset_ids = _cividiscount_get_discounted_priceset_ids();