INFRA-132 - CRM/Upgrade - Misc
authorTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 22:56:58 +0000 (14:56 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 23:07:49 +0000 (15:07 -0800)
CRM/Upgrade/Controller.php
CRM/Upgrade/Form.php
CRM/Upgrade/Incremental/php/ThreeThree.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/Field.php

index 145e12e867d39c06b3b68132897971bb1bd53906..ce68ebc94d385e51f0a8836295bc7db1ef3b46ff 100644 (file)
@@ -37,7 +37,8 @@ class CRM_Upgrade_Controller extends CRM_Core_Controller {
   /**
    * Class constructor
    */
-  function __construct($title = NULL,
+  function __construct(
+    $title = NULL,
     $action = CRM_Core_Action::NONE,
     $modal = TRUE
   ) {
index 406fc40e9895809e287019b1c05a58658d0522c7..bc5faa7d22355af5d9e62840590e29313a30f457 100644 (file)
@@ -99,7 +99,8 @@ class CRM_Upgrade_Form extends CRM_Core_Form {
    * @param string $method
    * @param null|string $name
    */
-  function __construct($state = NULL,
+  function __construct(
+    $state = NULL,
     $action = CRM_Core_Action::NONE,
     $method = 'post',
     $name = NULL
index 654bda1c13082d0116d8836abbbeef29142622f7..3556707547f9228e6de45d3c1ac20998021a2cc4 100644 (file)
@@ -266,7 +266,8 @@ WHERE id = %2
     $mainLineItem->find(TRUE);
     while ($mainLineItem->fetch()) {
       $dupeLineItem = new CRM_Price_BAO_LineItem();
-      foreach ($fields as $fld) { $dupeLineItem->$fld = $mainLineItem->$fld;
+      foreach ($fields as $fld) {
+        $dupeLineItem->$fld = $mainLineItem->$fld;
       }
       $dupeLineItem->find(TRUE);
       $dupeLineItem->addWhere("id != $mainLineItem->id");
index bb1e2f8fded890e7515ea759a0e976e081012bbb..30a5023992b788cd53d48baed731a043527f4ace 100644 (file)
@@ -143,7 +143,8 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field extends CRM_Upgrade_Snapshot_V4p
           if ($opId = CRM_Utils_Array::value($index, $opIds)) {
             $optionsIds['id'] = $opId;
           }
-          else { $optionsIds['id'] = NULL;
+          else {
+            $optionsIds['id'] = NULL;
           }
         }
         CRM_Upgrade_Snapshot_V4p2_Price_BAO_FieldValue::create($options, $optionsIds);
@@ -219,7 +220,8 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field extends CRM_Upgrade_Snapshot_V4p
    * @return null
    * @static
    */
-  public static function addQuickFormElement(&$qf,
+  public static function addQuickFormElement(
+    &$qf,
     $elementName,
     $fieldId,
     $inactiveNeeded,