diff --git a/libraries/gis/pma_gis_multilinestring.php b/libraries/gis/pma_gis_multilinestring.php index 2885e0d4ba..f5aa31f3ef 100644 --- a/libraries/gis/pma_gis_multilinestring.php +++ b/libraries/gis/pma_gis_multilinestring.php @@ -244,8 +244,8 @@ class PMA_GIS_Multilinestring extends PMA_GIS_Geometry /** * Generate the WKT with the set of parameters passed by the GIS editor. * - * @param array $gis_data GIS data - * @param int $index Index into the parameter object + * @param array $gis_data GIS data + * @param int $index Index into the parameter object * @param string $empty Value for empty points * * @return WKT with the set of parameters passed by the GIS editor @@ -288,11 +288,12 @@ class PMA_GIS_Multilinestring extends PMA_GIS_Geometry * * @return the WKT for the data from ESRI shape files */ - public function getShape($row_data) { + public function getShape($row_data) + { $wkt = 'MULTILINESTRING('; for ($i = 0; $i < $row_data['numparts']; $i++) { $wkt .= '('; - foreach($row_data['parts'][$i]['points'] as $point) { + foreach ($row_data['parts'][$i]['points'] as $point) { $wkt .= $point['x'] . ' ' . $point['y'] . ','; } $wkt = substr($wkt, 0, strlen($wkt) - 1); diff --git a/libraries/gis/pma_gis_multipoint.php b/libraries/gis/pma_gis_multipoint.php index f2928dad6f..b557465b17 100644 --- a/libraries/gis/pma_gis_multipoint.php +++ b/libraries/gis/pma_gis_multipoint.php @@ -251,7 +251,8 @@ class PMA_GIS_Multipoint extends PMA_GIS_Geometry * * @return the WKT for the data from ESRI shape files */ - public function getShape($row_data) { + public function getShape($row_data) + { $wkt = 'MULTIPOINT('; for ($i = 0; $i < $row_data['numpoints']; $i++) { $wkt .= $row_data['points'][$i]['x'] . ' ' . $row_data['points'][$i]['y'] . ','; diff --git a/libraries/gis/pma_gis_point.php b/libraries/gis/pma_gis_point.php index f2c39aaf36..82fb00c4ce 100644 --- a/libraries/gis/pma_gis_point.php +++ b/libraries/gis/pma_gis_point.php @@ -220,7 +220,8 @@ class PMA_GIS_Point extends PMA_GIS_Geometry * * @return the WKT for the data from ESRI shape files */ - public function getShape($row_data) { + public function getShape($row_data) + { return 'POINT(' . (isset($row_data['x']) ? $row_data['x'] : '') . ' ' . (isset($row_data['y']) ? $row_data['y'] : '') . ')'; }