diff options
author | Marc Delisle <marc@infomarc.info> | 2015-12-06 16:01:07 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2015-12-06 16:01:07 +0300 |
commit | 66c15daba0a4a34e108cb01a852b9171ae0f51ab (patch) | |
tree | f9e674706324b80f9d580b75825b084a5b5b4c4f /gis_data_editor.php | |
parent | 3dcb36b4caa04bcf313ef95e7ccfce6acf06e3fe (diff) |
Remove some unnecessary string concatenations
https://github.com/dseguy/clearPHP/blob/master/rules/no-unnecessary-string-concatenation.md
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'gis_data_editor.php')
-rw-r--r-- | gis_data_editor.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gis_data_editor.php b/gis_data_editor.php index 21918e8b74..63886a7b9e 100644 --- a/gis_data_editor.php +++ b/gis_data_editor.php @@ -194,9 +194,9 @@ for ($a = 0; $a < $geom_count; $a++) { } else { $type = $gis_types[0]; } - echo '<select name="gis_data[' . $a . '][gis_type]" class="gis_type">'; + echo '<select name="gis_data[' , $a , '][gis_type]" class="gis_type">'; foreach (array_slice($gis_types, 0, 6) as $gis_type) { - echo '<option value="' . $gis_type . '"'; + echo '<option value="' , $gis_type , '"'; if ($type == $gis_type) { echo ' selected="selected"'; } @@ -237,11 +237,11 @@ for ($a = 0; $a < $geom_count; $a++) { echo '<br/>'; printf(__('Point %d'), $i + 1); echo ': '; - echo '<label for="x">' . __("X") . '</label>'; + echo '<label for="x">' , __("X") , '</label>'; echo '<input type="text"' , ' name="gis_data[' , $a , '][' , $type , '][' , $i , '][x]"' , ' value="' , escape($gis_data[$a][$type][$i]['x']) , '" />'; - echo '<label for="y">' . __("Y") . '</label>'; + echo '<label for="y">' , __("Y") , '</label>'; echo '<input type="text"' , ' name="gis_data[' , $a , '][' , $type , '][' , $i , '][y]"' , ' value="' , escape($gis_data[$a][$type][$i]['y']) , '" />'; @@ -293,7 +293,7 @@ for ($a = 0; $a < $geom_count; $a++) { echo('<br/>'); printf(__('Point %d'), $j + 1); echo ': '; - echo '<label for="x">' . __("X") . '</label>'; + echo '<label for="x">' , __("X") , '</label>'; echo '<input type="text" name="gis_data[' , $a , '][' , $type . '][' , $i , '][' , $j , '][x]" value="' , escape($gis_data[$a][$type][$i][$j]['x']) , '" />'; @@ -366,7 +366,7 @@ for ($a = 0; $a < $geom_count; $a++) { echo '<br/>'; printf(__('Point %d'), $j + 1); echo ': '; - echo '<label for="x">' . __("X") . '</label>'; + echo '<label for="x">' , __("X") , '</label>'; echo '<input type="text"' , ' name="gis_data[' , $a , '][' , $type , '][' , $k , '][' , $i , '][' , $j , '][x]"' |