From: Tim Otten Date: Tue, 6 Jan 2015 19:58:05 +0000 (-0800) Subject: INFRA-132 - CRM/Report/Form.php - Cleanup via PHPStorm X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=86bd39be055cc8e1caedd78dbc17f94e34e817f9;p=civicrm-core.git INFRA-132 - CRM/Report/Form.php - Cleanup via PHPStorm --- diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 506fb6cc61..be44fe3110 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -960,10 +960,10 @@ class CRM_Report_Form extends CRM_Core_Form { $fieldName == 'county_id' ) { $this->addChainSelect($fieldName . '_value', array( - 'multiple' => TRUE, - 'label' => NULL, - 'class' => 'huge' - )); + 'multiple' => TRUE, + 'label' => NULL, + 'class' => 'huge' + )); } else { $this->addElement('select', "{$fieldName}_value", NULL, $field['options'], array( @@ -1119,9 +1119,9 @@ class CRM_Report_Form extends CRM_Core_Form { for ($i = 1; $i <= 5; $i++) { $this->addElement('select', "order_bys[{$i}][column]", ts('Order by Column'), $options); $this->addElement('select', "order_bys[{$i}][order]", ts('Order by Order'), array( - 'ASC' => 'Ascending', - 'DESC' => 'Descending' - )); + 'ASC' => 'Ascending', + 'DESC' => 'Descending' + )); $this->addElement('checkbox', "order_bys[{$i}][section]", ts('Order by Section'), FALSE, array('id' => "order_by_section_$i")); $this->addElement('checkbox', "order_bys[{$i}][pageBreak]", ts('Page Break'), FALSE, array('id' => "order_by_pagebreak_$i")); } @@ -3306,11 +3306,11 @@ ORDER BY cg.weight, cf.weight"; if ($this->_customGroupFilters) { $curFilters[$fieldName]['options'] = array(); $ogDAO = CRM_Core_DAO::executeQuery("SELECT ov.value, ov.label FROM civicrm_option_value ov WHERE ov.option_group_id = %1 ORDER BY ov.weight", array( - 1 => array( - $customDAO->option_group_id, - 'Integer' - ) - )); + 1 => array( + $customDAO->option_group_id, + 'Integer' + ) + )); while ($ogDAO->fetch()) { $curFilters[$fieldName]['options'][$ogDAO->value] = $ogDAO->label; }