Merge pull request #5242 from colemanw/getstat
[civicrm-core.git] / CRM / Utils / OpenFlashChart.php
index 5ca9f9f3af20a33dfce8dd82de6e4e590396dd3d..63173bae52e50a2543f916a90a40acfd5b40c2d9 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        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -452,13 +452,12 @@ class CRM_Utils_OpenFlashChart {
       foreach ($rows['multiValue'] as $key => $val) {
         $graph[$key] = array_combine($dateKeys, $rows['multiValue'][$key]);
       }
-      $chartData =
-        array(
-          'legend' => "$legend " . CRM_Utils_Array::value('legend', $rows, ts('Contribution')) . ' ' . ts('Summary'),
-          'values' => $graph[0],
-          'multiValues' => $graph,
-          'barKeys' => CRM_Utils_Array::value('barKeys', $rows, array()),
-        );
+      $chartData = array(
+        'legend' => "$legend " . CRM_Utils_Array::value('legend', $rows, ts('Contribution')) . ' ' . ts('Summary'),
+        'values' => $graph[0],
+        'multiValues' => $graph,
+        'barKeys' => CRM_Utils_Array::value('barKeys', $rows, array()),
+      );
     }
 
     // rotate the x labels.
@@ -475,7 +474,7 @@ class CRM_Utils_OpenFlashChart {
     foreach (array(
                'xSize',
                'ySize',
-               'divName'
+               'divName',
              ) as $f) {
       if (!empty($rows[$f])) {
         $chartData[$f] = $rows[$f];
@@ -515,7 +514,7 @@ class CRM_Utils_OpenFlashChart {
     foreach (array(
                'xSize',
                'ySize',
-               'divName'
+               'divName',
              ) as $f) {
       if (!empty($rows[$f])) {
         $chartData[$f] = $rows[$f];
@@ -569,4 +568,5 @@ class CRM_Utils_OpenFlashChart {
 
     return $openFlashChart;
   }
+
 }