Skip to content

Commit

Permalink
Build output in less steps
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jan 5, 2016
1 parent 4a3f055 commit c2ea3bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libraries/gis/GISVisualization.php
Expand Up @@ -290,18 +290,18 @@ private function _svg()
{
$this->init();

$output = '<?xml version="1.0" encoding="UTF-8" standalone="no"?'. ' >' . "\n";
$output .= '<svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg"'
$output = '<?xml version="1.0" encoding="UTF-8" standalone="no"?' . ' >'
. "\n";
. '<svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg"'
. ' xmlns="http://www.w3.org/2000/svg"'
. ' width="' . $this->_settings['width'] . '"'
. ' height="' . $this->_settings['height'] . '">';
$output .= '<g id="groupPanel">';
. ' height="' . $this->_settings['height'] . '">'
. '<g id="groupPanel">';

$scale_data = $this->_scaleDataSet($this->_data);
$output .= $this->_prepareDataSet($this->_data, $scale_data, 'svg', '');

$output .= '</g>';
$output .= '</svg>';
$output .= '</g></svg>';

return $output;
}
Expand Down

0 comments on commit c2ea3bc

Please sign in to comment.